Microsoft MVP성태의 닷넷 이야기
WPF Radio 버튼을 GroupName으로 읽어와서 비교하기 [링크 복사], [링크+제목 복사],
조회: 12293
글쓴 사람
민성 (minyy1 at hanmail.net)
홈페이지
첨부 파일
 

안녕하세요

<RadioButton x:Name="opt1" GroupName="aaaa" Content="a1"></RadioButton>
<RadioButton x:Name="opt2" GroupName="aaaa" Content="a2"></RadioButton>
<RadioButton x:Name="opt3" GroupName="aaaa" Content="a3"></RadioButton>

이것을

코드에서



            foreach (var item in collection)
            {

            }
GroupName aaaa 인것만 가져와서 체크가 되어있는지 판단할려고 하는데요
어떻게 groupName aaaa 인것만 가져와서 비교할 수 있을까요?

항상 감사드립니다~








[최초 등록일: ]
[최종 수정일: 8/20/2021]


비밀번호

댓글 작성자
 



2021-08-20 09시28분
별 수 없지 않을까요? 부모 (컨테이너) 컨트롤에서 자식을 열람해 GroupName이 있는지 찾아봐야 할 것입니다. 이 글 보시는 다른 분들이 더 나은 방법을 써주시길 기대합니다. ^^
정성태

NoWriterDateCnt.TitleFile(s)