datagridcell周围有一个virtualbox [英] the datagridcell has a virtualbox around it
本文介绍了datagridcell周围有一个virtualbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是一个wpf项目,当我选择一个datagridrow时,该行上的datagridcell有一个虚拟框,我想将其删除.
this is a wpf project and when I select a datagridrow ,the datagridcell which on the row has a virtual box , I want to delete it.
推荐答案
您可以做到以下
< Style x:Key ="DataGridCellStyle2" TargetType ="{x:Type Custom:DataGridCell}">< Setter Property ="FocusVisualStyle" Value ="{x:Null}"/></Style>
you can do like the following
<Style x:Key="DataGridCellStyle2" TargetType="{x:Type Custom:DataGridCell}"><Setter Property="FocusVisualStyle" Value="{x:Null}" /></Style>
在WPF中,这很容易做到.
您可以更改DataGridCell的样式.可以直接使用xaml或通过Expression Blend之类的工具完成此操作.
请参见为Microsoft的WPF数据网格设置样式 [ ^ ]上的优秀教程.
In WPF, this is quite easy to do.
You can change the style of the DataGridCell. This can be done directly using xaml or through a tool like Expression Blend.
See Styling Microsoft’s WPF datagrid[^] for an excellent tutorial on this.
这篇关于datagridcell周围有一个virtualbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文