Im looking for a customized control for WPF which allows Min,Max values and Indicator on specific value. If I had to paint it, It would look similar to this
In this example I have min =0, max= ~600, indicator=~200 500 indicates the point where my bar changes color
Try this
Im looking for a customized control for WPF which allows Min,Max values and Indicator on specific value
You mean, you're looking for the
Slider
Class. Why re-invent the wheel? Just declare your ownControlTemplate
for it:When declaring new
ControlTemplate
s, it always a good idea to start with the default one and slowly makes changes from there. you can find the defaultSlider ControlTemplate
in the Slider Styles and Templates page on MSDN.You can find out more about the
Slider
class from theSlider
Class page and more aboutControlTemplate
s from theControlTemplate
Class on MSDN.