How get button type on closing event? #1346
-
Hi guys, I need to know what kind of button was clicked (Primary, Secondary or None) when the widow is closing. Because I need to make a validation fields before close to show the user. If I make the validation and set cancel like true on closing event, I don't know which button is clicked because any button when clicked pass by this event without identification. Anybody can help me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are you referring to using the Although, after reading your question, it sounds like you would like this to be correctly available on the |
Beta Was this translation helpful? Give feedback.
Yes, I'm referring a
Wpf.Ui.MessageBox
, because sometimes control the closing event can be important in specific scenarios and this will be helpful. This time, I changed theWpf.Ui.MessageBox
forWpf.Ui.DialogContent
and I can control which button the user clicked and this help me for my case.Thanks for your feedback and attention