Skinning Silverlight controls just got easier
2008-10-24 11:46:28 来源:WEB开发网You may not realize it but the ScrollBar has a lot of elements that you can skin. The thumb, the handles, the bar, every little detail…so now in Blend 2.5 we can right-click and choose to edit that:
When you do this you are prompted for some settings, one to name the style and the second of where to put it, either in the document resources or as an application resource that other controls may subscribe to:
After you do this, your objects and timelines explorer (on the left by default unless you’ve moved it) now changes to represent the layered elements of the control you are skinning now. Note that the “up” arrow will get you out of this mode and back to your documents visual tree of elements. Here’s what the base template for ScrollBar looks like:
You can continue to dig further. For example with ScrollBar, if you wanted to modify the Thumb, simply select that in the visual object tree:
Tags:Skinning Silverlight controls
编辑录入:爽爽 [复制链接] [打 印]- ››silverlight全屏显示图片
- ››Silverlight MVVM 模式(一) 切近实战
- ››Silverlight for Windows Phone 7开发系列(1):...
- ››Silverlight for Windows Phone 7开发系列(2):...
- ››Silverlight for Windows Phone 7开发系列(3):...
- ››Silverlight for Windows Phone 7开发系列(4):...
- ››Silverlight for Symbian
- ››Silverlight3系列(四)数据绑定 Data Binding 1
- ››silverlight2 游戏 1 你能坚持多少秒
- ››Silverlight开发实践--PicZoomShow
- ››Silverlight自定义控件开发 - 令人懊恼的OnApplyT...
- ››Silverlight 2 RTW中ToolTipService.ToolTip不继承...
更多精彩
赞助商链接