Track bar /slider template for WPF

前端 未结 2 1954
死守一世寂寞
死守一世寂寞 2020-12-08 23:58

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

2条回答
  •  猫巷女王i
    2020-12-09 00:20

    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 own ControlTemplate for it:

    
        
            
                
            
        
    
    

    When declaring new ControlTemplates, it always a good idea to start with the default one and slowly makes changes from there. you can find the default Slider ControlTemplate in the Slider Styles and Templates page on MSDN.

    You can find out more about the Slider class from the Slider Class page and more about ControlTemplates from the ControlTemplate Class on MSDN.

提交回复
热议问题