Improve Dialog and drawer close button visibility control.
IsCloseButtonVisible in all options are now nullable boolean type.
If it is true or false, it directly controls the visibility of close button.
If it is null, and dialog/drawer is not custom, it follows the default rule based on dialog type and view model. If DataContext implements IDialogContext, close button will be visible. If Dialog mode is not YesNo, close button will be visible.
To retain the close button size occupation, close button will be hidden instead of invisible.
A11y improvement
For MessageBox and default Dialog, a default button is set. When clicking on close button or pressing ESC key, the default result is returned based on WPF rule . See details in Display a message box
Improve Dialog and drawer close button visibility control.
IsCloseButtonVisible in all options are now nullable boolean type.
A11y improvement
Improve Dialog and Drawer demo page.