Travyguy9
Travyguy9

Reputation: 4344

MahApps.Metro ToggleSwitch Focus issues

I am using the ToggleSwitch from MahApps.Metro as a signoff for my textbox. Basically, once the TextBox is valid, the ToggleSwitch will disable the TextBox. My TextBox has its UpdateSourceTrigger set to LostFocus because I am using a converter and need to wait until the user is finished to make sure it is completely valid. The ToggleSwitch has its UpdateSourceTrigger set to PropertyChanged for the IsChecked property.

What is happening is when I type into my TextBox and then click the ToggleSwitch, my LostFocus never fires for my TextBox and my property is never set. I tested this out by changed the ToggleSwitch to a CheckBox and that fired my LostFocus and my property was set before the IsChecked property was updated. Any idea why the ToggleSwitch is not taking focus away from my TextBox?

Upvotes: 1

Views: 247

Answers (1)

punker76
punker76

Reputation: 14611

It seems the latest alpha version of MahApps.Metro (> v1.1.2) fixes this, which is also availabe via NuGet.

Upvotes: 2

Related Questions