Slider On/Off Switch in WPF

前端 未结 6 717
灰色年华
灰色年华 2020-12-22 21:39

I am looking for a WPF tutorial on creating a slide ON/OFF switch like on the iPhone.

Here is an example (the "Send all traffic" option) https://secure-tunn

6条回答
  •  难免孤独
    2020-12-22 21:56

    I like the nice prototype from arconaut and I added some code to get the border rounded.

    You have to remove the "Background" property from the Grid declaration and add this lines between the Grid declaration and the first TextBlock declaration:

    
        
    
    

提交回复
热议问题