当我的应用程序将状态更改为正常时,我想将重点放在我的ListView
:
private void Window_StateChanged(object sender, EventArgs e)
{
if (WindowState == WindowState.Normal)
ListViewUsers.Focus();
}
我很想用Up & Down
箭头Keys
导航我,ListViewItem
而不是单击我的ListView
第一个来设置焦点。
因此,除了我在我的框周围有一个虚线边框这一点之外,这还算不错ListView
。
我尝试将此行添加到我的ListViewItem Style
:
<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListViewItem}">
<Setter Property="FocusVisualStyle" Value="{x:Null}"/> ....
但是不幸的是,我仍然看到这点缀border
。
有什么建议?
这对我来说可以。
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
您如何应用样式?您确定ListView
项目使用这种样式吗?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句