MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
DialogHost nested z-order changes when application loses focus
未关闭
还没有人认领这个 Issue。
bug
- 主要语言
- C#
- 星标
- 16.3k
- 派生
- 3.5k
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 8
描述
Bug explanation
I am nesting dialoghosts so that I can stack sub dialogs. It works great for our application.
<materialDesign:DialogHost Identifier="SubDialog" CloseOnClickAway="True">
<materialDesign:DialogHost Identifier="RootDialog" DialogTheme="Inherit" CloseOnClickAway="True">
The issue I've found is when the application (MainWindow) loses focus to another Windows application, the z-order of the dialogs is changed and the dialog that was in front is sent to the back. This often hides the sub dialog and if CloseOnClickAway is false, then the user can get stuck.
Version
4.9.0
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先复现 issue 中所示的嵌套 DialogHost 设置,其中 MainWindow 将焦点丢失给另一个 Windows 应用程序。跟踪嵌套的 DialogHost 实例如何管理 z-order 和焦点,然后验证之前位于最前面的子对话框在焦点返回后仍保持可见且可用,包括 CloseOnClickAway 为 false 时的情况。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- desktop
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100