ContentDialog.PrimaryButtonCommand Property

Definition

Gets or sets the command to invoke when the primary button is tapped.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.ContentDialog.PrimaryButtonCommand.

public:
 property ICommand ^ PrimaryButtonCommand { ICommand ^ get(); void set(ICommand ^ value); };
ICommand PrimaryButtonCommand();

void PrimaryButtonCommand(ICommand value);
public ICommand PrimaryButtonCommand { get; set; }
var iCommand = contentDialog.primaryButtonCommand;
contentDialog.primaryButtonCommand = iCommand;
Public Property PrimaryButtonCommand As ICommand
<ContentDialog PrimaryButtonCommand="commandReference"/>

Property Value

ICommand

The command to invoke when the primary button is tapped.

Applies to