ContentDialog.SecondaryButtonText Property


Gets or sets the text to be displayed on the secondary button.

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

 property Platform::String ^ SecondaryButtonText { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring SecondaryButtonText();

void SecondaryButtonText(winrt::hstring value);
public string SecondaryButtonText { get; set; }
var string = contentDialog.secondaryButtonText;
contentDialog.secondaryButtonText = string;
Public Property SecondaryButtonText As String
<ContentDialog SecondaryButtonText="string"/>

Property Value


The text to be displayed on the secondary button. To hide this button, set the value to null or string.empty.

Applies to