RadioButton.GroupName 속성

정의

함께 사용할 수 없는 RadioButton 컨트롤을 지정하는 이름을 가져오거나 설정합니다.

public:
 property System::String ^ GroupName { System::String ^ get(); void set(System::String ^ value); };
[System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)]
public string GroupName { get; set; }
[<System.Windows.Localizability(System.Windows.LocalizationCategory.NeverLocalize)>]
member this.GroupName : string with get, set
Public Property GroupName As String

속성 값

String

함께 사용할 수 없는 RadioButton 컨트롤을 지정하는 이름입니다. 기본값은 빈 문자열입니다.

특성

예제

다음 코드 예제에서는 두 개의 별도 RadioButton 그룹: colorgrpnumgrp입니다. 사용자 하나를 선택할 수 RadioButton 각 그룹에 있습니다.

<StackPanel>
    <RadioButton GroupName="colorgrp">Red</RadioButton>
    <RadioButton GroupName="colorgrp">Blue</RadioButton>
    <RadioButton GroupName="numgrp">1</RadioButton>
    <RadioButton GroupName="numgrp">2</RadioButton>
</StackPanel>

설명

때 두 개 이상 RadioButton 컨트롤에는 동일한 GroupName를 하나만 선택할 수 있습니다 RadioButton 번입니다.

종속성 속성 정보

식별자 필드 GroupNameProperty
메타 데이터 속성 설정 true 없음

적용 대상