Silverlight and the VisualStateManager
2008-10-24 11:46:25 来源:WEB开发网If you’ve heard the news about Silverlight 2 Beta 2 and Expression Blend 2.5 (June 2008 preview), you will notice something else in addition to being able to skin your controls easier. Remember how you may have had to create different states for your element using “MouseOver State" and then create storyboards to transition to states? There’s now a better way.
Enter VisualStateManager.
Let’s take a look and see if we can simplify this down a bit a basic understanding. Let’s use something that most everyone should be able to relate to with states: Button. A button has MouseOver, MouseOut, MouseDown, etc. states that you can see. Using VisualStateManager and the new UI ability to customize templates, we can make our lives easier.
Start in Expression Blend and drop a button on the default design surface. I’ve created mine larger just for context, but whatever you want is fine. You should have something like this:
Now, using the method in one of my previous posts about skinning the controls, right-click on the button and choose to edit the template. I’d choose Edit a Copy for now to make things easier for now…keep it a document resource as well. After you’ve done that, take a look in the upper left pallette (assuming default and you haven’t moved your palettes around…in which case you probably already know about VSM and are smarter than me anyway):
Tags:Silverlight and the
编辑录入:爽爽 [复制链接] [打 印]- ››Android 当修改一些代码时,使用什么编译命令可以最...
- ››Android 如何添加一个apk使模拟器和真机都编译进去...
- ››Android 修改Camera拍照的默认保存路径
- ››Android 如何修改默认输入法
- ››android开发中finish()和System.exit(0)的区别
- ››Android手势识别简单封装类
- ››android中查看项目数字证书的两种方法
- ››Android中获取IMEI码的办法
- ››android 相机报错 setParameters failed
- ››Android重启运用程序的代码
- ››Android为ListView的Item设置不同的布局
- ››android bitmap与base64字符串的互相转换
赞助商链接