Change status of an AppBarToggleButton in C # (UWP)

1

I have a menu created with AppBarToggleButton with property IsChecked="True" .

How do you make C # to activate or deactivate your "checked" status?

    
asked by Webserveis 08.01.2016 в 23:31
source

1 answer

2

I found it, with the method IsChecked , in addition to knowing if the toggle is selected or not, we can define its status, its use is as follows

botonToggle.IsChecked = true;
botonToggle.IsChecked = false;

Para more information official reference of AppBarToggleButton class

    
answered by 09.01.2016 / 15:25
source