...
Style key | Description |
---|---|
DataWindowStyle | The actual window style which can be used to decorate or customize the window itself. |
DataWindowButtonContainerStyle | The container that is used for the buttons. This is a WrapPanel, so the styles must match that. |
DataWindowButtonStyle | The style for the buttons. By default, the buttons are right aligned and have a fixed size. |
Closing the DataWindow with the Escape key
The DataWindow can be configured to close with the Escape key using the CanCloseUsingEscape dependency property (default true). This is useful for when DataWindow is used in e.g. dialogs. When used as the main window, it is advised to set CanCloseUsingEscape=False, as the user can inadvertedly close the application by pressing the Escape key.