MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
MaterialDesignDataGridTextColumnPopupEditingStyle: Mouse and focus issues
未关闭
还没有人认领这个 Issue。
bug
datagrid
up-for-grabs
- 主要语言
- C#
- 星标
- 16.3k
- 派生
- 3.5k
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 8
描述
When you double click on a cell which has EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnPopupEditingStyle}" defined, the popup appears but there are a few issues:
- You can't move the cursor using the mouse and can't select text with the mouse (although right clicking brings up the context menu correctly).
- If the cell editing popup is open and you change focus to another app, the popup remains on top of the other application.
- (Minor/opinion) The cursor's position is at the beginning of the TextBox when the popup editor opens (I think this would typically be at the end?)
To reproduce:
- Open the WPF demo
- Selecting the "Grids" page using the menu
- Double click on a cell in the Name or Description columns to start editing
- Try using the left mouse button to move the cursor or select text inside the popup
- Switch to another application while the cell editor is open
Here's a screenshot of the popup over another window.

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 WPF 示例的 Grids 页面以及 Name 和 Description 列使用的 MaterialDesignDataGridTextColumnPopupEditingStyle 开始。通过双击复现弹出窗口的行为,然后跟踪弹出编辑器对鼠标选择、应用程序焦点和初始光标位置的处理。完成的标准是鼠标编辑正常工作,弹出窗口不会停留在另一个应用程序之上,并且光标行为得到处理。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- desktop
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100