DialogHost IsLoaded but not exactly
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
首先,使用連結的 DialogHostStartupExample 專案重現啟動序列,並檢查 DialogHost.Show、FrameworkElement.IsLoaded 和 LoadedInstances HashSet。確定為什麼 Show 可能在註冊完成之前執行,然後根據 issue 中描述的初始視窗/檢視開啟情境驗證 fix。
由索引模型根據 Issue 內容生成。
描述
Bug explanation
I've uploaded a sample project illustrating the issue.
When trying to get a WPF window to open a view using DialogHost on initial startup/show, I noticed that the DialogHost.Show method throws an exception even though the DialogHost instance IsLoaded property was true. I am thinking the DialogHost is loaded but not yet registered in the LoadedInstances HashSet by the time the Window.IsLoaded event triggers.
https://github.com/jbooth88/DialogHostStartupExample
Looks like IsLoaded property is coming from FrameworkElement, so my guess here is that it's not the correct value to identify whether or not the DialogHost is fully initialized. I am not sure of the best way to solve this problem.
Version
5.2.1
- 主要語言
- 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 於 13 天前認領。 未關閉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 天內回覆