zoukankan      html  css  js  c++  java
  • WPF控件 在XP下获得焦点有虚线框

    所有 Button、ListBox等控件获得焦点时有虚线框。如图:选中523这个按钮就出线虚框。

      

      我在App.xaml中添加适应所有按钮的样式,无效

    <Style  TargetType="{x:Type Button}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
    </Style> 

      目前的解决方法只能在没有控件或控件样式 里添加代码:

     <Setter Property="FocusVisualStyle" Value="{x:Null}"/>

      稍微麻烦了点,谁有更好的方法?

      本文来自星星工作室的博客,原文地址:http://www.cnblogs.com/star250/archive/2011/10/13/2209748.html

  • 相关阅读:
    codeforces 1096 题解
    pkuwc 前的任务计划
    codeforces 1093 题解
    luoguP5068 [Ynoi2015]我回来了
    luoguP5074 Eat the Trees
    二分
    保护
    数数字
    旅行
    すすめ!
  • 原文地址:https://www.cnblogs.com/qq247039968/p/4058006.html
Copyright © 2011-2022 走看看