MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

MaterialDesignDataGridTextColumnPopupEditingStyle: Mouse and focus issues

未关闭
#493 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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:

  1. 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).
  2. If the cell editing popup is open and you change focus to another app, the popup remains on top of the other application.
  3. (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.
popup_example

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 WPF 示例的 Grids 页面以及 Name 和 Description 列使用的 MaterialDesignDataGridTextColumnPopupEditingStyle 开始。通过双击复现弹出窗口的行为,然后跟踪弹出编辑器对鼠标选择、应用程序焦点和初始光标位置的处理。完成的标准是鼠标编辑正常工作,弹出窗口不会停留在另一个应用程序之上,并且光标行为得到处理。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
desktop
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。