ratishphilip / wpfspark

A rich UserControl library to enhance the look and feel of WPF applications.
http://www.codeproject.com/Articles/1060961/WPFSpark-v
MIT License
549 stars 84 forks source link

ToggleSwitch #4

Closed mavris closed 7 years ago

mavris commented 7 years ago

Hi, I am using ToggleSwitch to my project and I notice that you have removed the IsChecked functionality. Is there is any way to initialize the state of the ToggleSwitch with bindings?

ratishphilip commented 7 years ago

@mavris ToggleSwitch derives from ToggleButton class and it does have IsChecked property. It is not removed.

mavris commented 7 years ago

Sorry, what I meant is that I am binding a boolean to IsChecked and it doesn't affect the UI. I also tried to set it to "false" but it still not working.

ratishphilip commented 7 years ago

I just tested your scenario. It seems to be working for me. Check out the sample project attached below.

WpfSparkTester2.zip

mavris commented 7 years ago

It's working thanks. I don't what what went wrong.