Silverlight视觉状态 [英] Silverlight visual states

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

问题描述

在Expression Blend 4设计器(不在XAML中)中,如何将可视状态组添加到资源文件中的样式?或者从可视状态组创建新资源?属性有高级选项,允许你这样做,但我不能
找到如何为州做。

解决方案

你好,


你不能这样做是一个简单的答案。


如果你希望一组状态成为资源的一部分,你可以编辑一个元素的样式并添加/修改那些将成为资源一部分的状态,但仅适用于兼容元素。例如按钮元素的按钮资源


 


HTH


干杯


In the Expression Blend 4 designer (not in XAML), how do I add visual state groups to a style in my resources file? Or to create a new resource from the visual states group? Properties have Advanced options which allow you to do this but I cannot find how to do that for states.

解决方案

Howdy,

You cant do this is the simple answer.

If you want a collection of States to become part of a Resource, you can edit the Style of an element and add/modify the States there which will be part of the Resource, but only applicable to a compatible element. e.g. a button resource for a button element

 

HTH

Cheers


这篇关于Silverlight视觉状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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