We use RadWindow in this way (from command in ViewModel):
RadWindow.Confirm(new DialogParameters{
Content = new ContentPresenter {ContentTemplate = Template("SomeTemplateFromXamlWithTextBoxAndComboBox")},
Closed = (o, e) => {
if (there are some errors) return;
do stuff if there are no errors
}
});
In the end, windows is closed. But what we want is if there are errors, user should be notified with MessageBox and then RadWindow should remain open.
There is no "PreviewClosed" in RadWindow.Confirmed. We tried a simple RadWindow but then we would have to define our own buttons and we have problems binding events to them.
How could we achieve the desired behavior?
RadWindow.Confirm(new DialogParameters{
Content = new ContentPresenter {ContentTemplate = Template("SomeTemplateFromXamlWithTextBoxAndComboBox")},
Closed = (o, e) => {
if (there are some errors) return;
do stuff if there are no errors
}
});
In the end, windows is closed. But what we want is if there are errors, user should be notified with MessageBox and then RadWindow should remain open.
There is no "PreviewClosed" in RadWindow.Confirmed. We tried a simple RadWindow but then we would have to define our own buttons and we have problems binding events to them.
How could we achieve the desired behavior?