当前位置: 代码迷 >> Windows Mobile >> 当Button.IsEnabled = false 背景色就消失了,该怎么处理
  详细解决方案

当Button.IsEnabled = false 背景色就消失了,该怎么处理

热度:47   发布时间:2016-04-25 07:20:12.0
当Button.IsEnabled = false 背景色就消失了
 <Button  Grid.Row="1"  Grid.Column="2"   Name="Button"  Content="button"  >
                <Button.Background>
                    <ImageBrush ImageSource="/Assets/getcode.png"></ImageBrush>
                </Button.Background>
            </Button>


当Button.IsEnabled = false 背景色就消失了 怎么样才会不消失。。。。

------解决方案--------------------
用blend打开以后,编辑这个button的模板,在状态state里面应该能看到IsEnable下面的显示效果,改下就好,或者看这个button的模板的代码,也能看出点端倪
------解决方案--------------------
引用:
用blend打开以后,编辑这个button的模板,在状态state里面应该能看到IsEnable下面的显示效果,改下就好,或者看这个button的模板的代码,也能看出点端倪

++1
------解决方案--------------------
引用:
用blend打开以后,编辑这个button的模板,在状态state里面应该能看到IsEnable下面的显示效果,改下就好,或者看这个button的模板的代码,也能看出点端倪


高手啊
  相关解决方案