具有条件的视觉状态 [英] Visual states with conditions
问题描述
对于文本框,我想要两种模式:
for a textbox , i want to have two modes :
- 正常(可编辑)
- Normal(editable)
- ReadOnly(不可编辑,没有边框)
- ReadOnly (non editable with no border)
所以我创建了一个新的样式,转到状态,并删除了只读状态的边框。
so i have created a new style , go to the states , and remove the border for the readonly state .
我只是将边框的alpha设置为0.。
i simply set the alpha of the border to 0 .
现在我想要其他状态相同的东西(正常/鼠标悬停)但只读条件
now i want the same thing for other states(normal/mouseover) but with read only condition
我的意思是:设置仅当 isreadonly 属性为true时,边框的alpha为0
i mean : set the alpha of the border to 0 only if the isreadonly property is true
请问如何做到这一点?
感谢和美好的一天
推荐答案
这里是视频,
这可能会给你一个很好的报道。
http://msdn.microsoft.com/en-us/expression/ee426922.aspx
问候,< a href ="http://msdn.microsoft.com/en-us/expression/ee426922.aspx">
这篇关于具有条件的视觉状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!