Reputation: 309
In my Metro App, I am having a Toggle Switch inside a Grid control. Now I want to change its state programmatically to on or off. I am using Xaml.
Upvotes: 2
Views: 4064
Reputation: 5225
Use the ToggleSwitch.IsOn property: http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.toggleswitch.ison.aspx
Upvotes: 5