Mitc
Mitc

Reputation: 81

Slider control in XAML-Silverlight 4

Is it possible to remove the slider line in the slider control (I'm not sure what to call it, but it's the line the slider holder slides to)?

Upvotes: 0

Views: 768

Answers (1)

Derek Beattie
Derek Beattie

Reputation: 9478

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.

Upvotes: 1

Related Questions