ContentDialog.PrimaryButtonCommand Property

Definition

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

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

The command to invoke when the primary button is tapped.

Applies to