Changing the language of a window breaks displaying child nodes of a TreeView
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從 MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.TreeView.xaml 中第 359 行附近的 binding 開始,然後使用連結的範例應用程式及其語言變更情境重現問題。調查 UI 更新後 binding 參照錯誤 ItemsHost 的原因;完成標準是變更視窗語言後 TreeView 子節點能夠正確顯示。
由索引模型根據 Issue 內容生成。
描述
Bug explanation
Changing the language of a window breaks displaying child nodes of a TreeView. I assume it has something to do with an UI update because it breaks in another app when different TreeViews are displayed. The only way I can reliably reproduce the issue is with the language change.
Here is a video demonstrating the issue. I also uploaded an example app.
Using Snoop I figured out that this binding breaks as it somehow references the wrong ItemsHost element.
I temporarily fixed the issue by changing the line from
<Binding ElementName="ItemsHost" Path="ActualHeight" />
to
<Binding RelativeSource="{RelativeSource Mode=Self}" Path="Children[0].ActualHeight" />
I don't think that is the proper solution though.
Version
4.6.1, 4.8.0
- 主要語言
- C#
- 星號
- 16.3k
- 分支
- 3.5k
- 平均合併
- 4 小時 25 分鐘
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
MaterialDesignInXAML/MaterialDesignInXamlToolkit 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 88/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4124 ·
維護者通常 1 天內回覆
-
MaterialDesignChoiceChipListBoxItem missing 'Path=Name' in GroupName binding causes selection conflict between ListBoxes可能已有人在做 @corvinsz 於 12 天前認領。 未關閉bug evaluation required
難度 1/5 1-3 小時 新手友好度 78/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4118 · 1 則留言 ·
維護者通常 1 天內回覆
-
enhancement up-for-grabs
難度 2/5 1-3 小時 新手友好度 68/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#2485 ·
維護者通常 1 天內回覆
-
enhancement evaluation required
難度 3/5 半天 新手友好度 30/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4120 · 1 則留言 ·
維護者通常 1 天內回覆
-
Add Semantic, Theme-Aware Colors可能已有人在做 @corvinsz 於 23 天前認領。 未關閉enhancement
難度 4/5 3-5 天 新手友好度 48/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4114 · 1 個 reaction ·
維護者通常 1 天內回覆
查看 MaterialDesignInXAML/MaterialDesignInXamlToolkit 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
NimblePros/eShopOnWeb#333 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 2/5 1-3 小時 新手友好度 62/100
-
documentation
難度 2/5 半天 新手友好度 65/100
維護者通常 1 天內回覆