In System.Windows.Forms.Button there is a property DialogResult, where is this property in the System.Windows.Controls.Button (WPF)?
In System.Windows. Forms .Button there is a property DialogResult , where is this property
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no built-in Button.DialogResult, but you can create your own (if you like) using a simple attached property:
This will allow you to write:
and get behavior equivalent to WinForms (clicking on the button causes the dialog to close and return the specified result)