Custom WPF Slider with image as Thumb

后端 未结 2 732
夕颜
夕颜 2020-12-01 07:08

How can I style a Slider control for WPF in a way like this figure:

\"enter

An

2条回答
  •  温柔的废话
    2020-12-01 07:39

    Similar example :

    Track bar /slider template for WPF

    You need to edit style of Both RepeatButton

    
    
        
    
        
    
        
    
        
            
                
                    
                    
                    
                
                
                    
                        
                    
                    
                        
                    
                    
                        
                    
                
                        
        
    
        
    
    
    
    

    Update slider thumb with image

       
    

    Update: slider thumb with Mouseover animation

    You can add mouserover effect using triggers.

    
    

    Result

    enter image description here

提交回复
热议问题