例でこれを試しましたが、うまくいくようでした。それから私はそれを私たちが取り組んでいるメインプロジェクトに適用しました、そしてそれは失敗しました。関連するコードの一部は次のとおりです。
<ComboBox Name="Combo" IsSynchronizedWithCurrentItem="True"
ItemsSource="{Binding Tables}" SelectedItem="{Binding TableName, Mode=TwoWay}"
Style="{StaticResource ComboBoxStyle}" Grid.Row="1" Height="30" Width="180"
SelectionChanged="Combo_SelectionChanged" IsEnabled="{Binding IsChecked, ElementName=rdBtnList}" Margin="6,20,6,0" Grid.RowSpan="2" />
そしてそれを制御するラジオボタン:
<RadioButton Content="By List" Height="16" IsChecked="{Binding Path=ListSelect, Mode=TwoWay}"
HorizontalAlignment="Right" Margin="0,6,24,0" Name="rdBtnList" VerticalAlignment="Top"
Background="DodgerBlue" FontSize="13" FontWeight="Bold" Grid.RowSpan="2" />
誰かが(IsEnabledの状況に関して)間違っていると思われるものを見ていますか?