-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.ContentDialog.CloseButtonCommand |
winrt property |
Gets or sets the command to invoke when the close button is tapped.
<ContentDialog CloseButtonCommand="commandReference"/>
- commandReference
- commandReferenceA reference to an ICommand implementation that describes the command logic. Typically this is done through a {Binding} markup extension reference to a data source, when using model-view-view model designs.
The command to invoke when the primary button is tapped.