multi setter
WPF
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, I have a button which opens a popup. In my xaml code behind i use: private void dropDownbtn_Click(object sender, RoutedEventArgs e) { MenuPopUp.StaysOpen = true; MenuPopUp.IsOpen = true; MenuPopUp.StaysOpen = false; } The thing is that i want to put this code into xaml using event trigger (click on button) and setter with binding element as menuPopUp and set it's properties. Can i do it in xaml? i mean set the same property twice (once true and once false)? I mean for the statysOpen property. BTW, i am doing this because otherwise popup will be opened and closed automatically on button click so popup will never be shown.