具有条件的视觉状态 [英] Visual states with conditions

查看:89
本文介绍了具有条件的视觉状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于文本框,我想要两种模式:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆