开发者

Slider control in XAML-Silverlight 4

Is it possible to remove t开发者_JS百科he slider line in the slider control (I'm not sure what to call it, but it's the line the slider holder slides to)?


You should be able to, here are the default styles and templates for the slider control. http://msdn.microsoft.com/en-us/library/cc278073(v=vs.95).aspx

From this excellent tutorial under the section called Customizing Controls using Control Templates: "The control model used by Silverlight and WPF allows you to go much further than just customizing the inner content of a control. It optionally allows you to completely replace a control's visual tree with anything you want - while still keeping the control behavior intact."

At first I still found this somewhat confusing. After I watched this 4 part video series by Jesse Liberty on Building a Skinnable Custom Control this concept of changing a controls look and feel while the behavior remains in tact, made a lot more sense.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜