Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToggleSwitch doesn't change between IsEnabled states #253

Closed
kkalitowski opened this issue Nov 8, 2012 · 2 comments
Closed

ToggleSwitch doesn't change between IsEnabled states #253

kkalitowski opened this issue Nov 8, 2012 · 2 comments
Labels

Comments

@kkalitowski
Copy link

It doesn't appear that there is code in ToggleSwitch to monitor when the IsEnabled bit changes.

I added this line to the constructor to make it work. I'm not a UI control designer so I don't know if there is a better way.
IsEnabledChanged += (sender, args) => ChangeVisualState(false);

@lukaspj
Copy link
Contributor

lukaspj commented Nov 8, 2012

Repost of this:
#249

Tried adding that ChangeVisualState in the code (can't remember where) but it didn't work, is this working for you? (Is the background changing properly?) Might dig a little more into this when I get some time with my Windows7 computer

@shiftkey
Copy link

IsEnabled/IsEnabledChanged is a property on UIElement and is used to track enable/disabled state of a control.

ToggleSwitch uses IsChecked (like CheckBox) but did not provide the IsCheckedChanged event too hook into.

This has been added and will be available in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants