Slider On/Off Switch in WPF

前端 未结 6 690
灰色年华
灰色年华 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条回答
  •  旧时难觅i
    2020-12-22 22:02

    I just posted an entry in regards to this which provides a proper sliding action, full configurability and doesn't require to be a fixed size (got annoyed as I couldn't find anything on the web that provided a solution like that).

    You can find it here: http://itsallaboutthexaml.blogspot.com/2012/01/variables-in-animation.html

    Know it's late in answering this question, but hope it helps anyone in the future.

提交回复
热议问题