开发者

Blend 3 - States?

开发者 https://www.devze.com 2022-12-09 11:30 出处:网络
I\'ve just downloaded Expression Blend 3 from DreamSpark (for fr开发者_JAVA百科ee because I\'m a student :)) and read about states. I came across this and I was very impressed. And then I tried it on

I've just downloaded Expression Blend 3 from DreamSpark (for fr开发者_JAVA百科ee because I'm a student :)) and read about states. I came across this and I was very impressed. And then I tried it on my own, I created a style, created a template, simply selected a button - but I cannot make those default styles like MouseOver, Pressed, etc. appear in the states window. Can someone give me a step-by-step beginner tip for that?


If you download and install the WPF Toolkit (June 2009 Release) you will be able to use the States and Parts model in WPF.

You can download the WPF Toolkit at CodePlex: http://wpf.codeplex.com


The VSM only works on Silverlight at the moment. It will be in WPF in the .NET 4.0 release (and is in the beta).

Right now in WPF, you may want to use DataTriggers. In Blend, simply edit your style, create a new Trigger and add the IsMouseOver property and set up your style for it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号