Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コードビハインド:
musicChooser.SetBinding(ComboBox.SelectedIndexProperty, musicIndexBinding);
別のボタンがクリックされたとき:
musicChooser.SelectedIndex = -1;
その後、バインディングが停止しました。なぜですか?
次の行で明示的に設定することにより、バインドを明示的に削除しました-1。
-1
バインディング ターゲットをリセットする場合は、バインディング ソース (この場合は musicIndexBinding) の値をリセットする必要があり-1ますmucisChooser。
mucisChooser