Silverlight and the VisualStateManager
2008-10-24 11:46:25 来源:WEB开发网The various states of this control are represented in this particular template. Some other controls might have a blank palette here until some are added, but Button has some default states. As a designer now you can simply concentrate on what the final look of the element (in our case a Button) in each state. Just define the state and what the element should look like in that state. The State palette shows a few things. You’ll notice “Base” as well as two other named containers, “CommonStates” and “FocusStates” which are what are called state groups and containers for different states.
Beneath that you can select a state and see it’s final state. Want to change the MouseOver state, select it in the state palette and start customizing the template. Let’s change the MouseOver state, select it and let’s change some properties. By default it looks like this:
You’ll also notice a few things changed. Basically the design surface goes into Timeline recording mode and a subtle new feature in the objects palette indicating the property being animated/changed…in this case the BackgroundGradient:
Tags:Silverlight and the
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接