【问题标题】:In WPF, how to increase the thickness of ant in DataGrid from codeplex?在WPF中,如何从codeplex增加DataGrid中ant的厚度?
【发布时间】:2011-10-11 10:15:51
【问题描述】:

我正在使用来自 codeplex 的 DataGrid 用于 WPF。网格似乎很棒。最近我注意到当我使用箭头键时 DataGrid 中显示的蚂蚁,有一个虚线蚂蚁显示,用户不太清楚。示例如下所示。

蚂蚁现在出现在值为 4 的单元格周围。它是虚线,但不是很清楚

我想知道如何增加此网格中显示的蚂蚁的厚度。

【问题讨论】:

  • '蚂蚁'?你的意思是?边界?
  • @Emo - 是的.. 4 左右的虚线边框我现在已经更改了屏幕截图

标签: wpf datagrid navigation cell arrow-keys


【解决方案1】:

您可以通过覆盖 DataGridCell.FocusVisualStyle 来覆盖点焦点的行为。

【讨论】:

    猜你喜欢
    • 2015-12-31
    • 1970-01-01
    • 1970-01-01
    • 2013-04-08
    • 1970-01-01
    • 1970-01-01
    • 2016-11-12
    • 1970-01-01
    • 2012-06-15
    相关资源
    最近更新 更多