Accueil > Non classé > ToggleButton to control Popup

ToggleButton to control Popup

When you must control a Popup with ToggleButton you can bind IsOpen of Popup to IsChecked of ToggleButton and set StaysOpen of Popup to false

but in this cas when the Popup is open and you click another time on ToggleButton, the Popup close and reopen immediatly

for having a better result on click on ToggleButton when Popup is open you can use this Helper

and use like this

 

Categories: Non classé Tags:
  1. Pas encore de commentaire
  1. Pas encore de trackbacks