Silverlight视觉状态 [英] Silverlight visual states
问题描述
在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屋!