次のような状況があります: xaml 内でデータベースから値を取得し、コンボボックスに入力します.コンボボックスで選択された項目の値が「x」の場合、作業ウィンドウからいくつかの要素を非表示にしたい..ヒントについては thx
<TextBlock Text="XYZ:"/>
<ComboBox ItemsSource="{Binding DataContext.KeyLists.XYZ,
RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
SelectedValuePath="XYZId"
SelectedValue="{Binding XYZId, Mode=TwoWay}"
DisplayMemberPath="Name" />