1
내 기본 창 xaml에는 두 개의 사용자 컨트롤과 두 개의 RadioButton
이 있습니다. RadioButton
에서 사용자 컨트롤의 Visibility
을 제어하고 싶습니다.
XAML 발췌 : 사용자 정의 컨트롤에WPF를 사용하여 다른 클래스의 컨트롤에 바인딩 가시성
<WpfApp2:ViewTree/>
<WpfApp2:ViewTab/>
<RadioButton x:Name="radioButton_Tree" GroupName="View"
IsChecked="True"> Tree View </RadioButton>
<RadioButton x:Name="radioButton_Tab" GroupName="View"
IsChecked="False" >Tab View</RadioButton>
, 나는 이런 식으로 뭔가가 :
Cannot find source for binding with reference 'ElementName=Window1.radioButton_Tab'
내가 내려다 보이는하고 무엇 :이 오류가
Visibility="{Binding IsChecked,
Converter={StaticResource BooleanToVisibilityConverter},
ElementName=Window1.radioButton_Tree}" >
실행시를?
대단히 감사드립니다. – Number8