In System.Windows.Forms.Button there is a property DialogResult, where is this property in the System.Windows.Controls.Button (WPF)?
There is no Button.DialogResult in WPF. You just have to set the DialogResult of the Window to true or false :
Button.DialogResult
DialogResult
Window
private void buttonOK_Click(object sender, RoutedEventArgs e) { this.DialogResult = true; }