ContentDialog.SecondaryButtonText 속성

정의

보조 단추에 표시할 텍스트를 가져오거나 설정합니다.

public:
 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"/>

속성 값

String

Platform::String

winrt::hstring

보조 단추에 표시할 텍스트입니다. 이 단추를 숨기려면 텍스트를 null 또는 빈 문자열로 설정합니다. 기본값은 빈 문자열입니다.

설명

ContentDialog에는 이 속성을 비어 있지 않은 문자열로 설정하여 사용할 수 있는 기본 제공 보조 단추가 있습니다. 이 속성을 빈 문자열 또는 null로 설정하면 보조 단추가 숨겨집니다.

보조 단추를 호출하면 반환 값 ContentDialogResult.Secondary이 인 대화 상자가 닫힙니다. 또한 필요에 따라 처리할 수 있는 SecondaryButtonClick 이벤트를 발생시키고 설정된 모든 SecondaryButtonCommand 를 호출합니다.

적용 대상

추가 정보