作成日: 2013/11/01 最終更新日: 2013/11/01
文書種別
制限事項
詳細
C1ComboBoxにデータバインディングを設定して、実行時に項目を選択しても、SelectedIndex、SelectedItem、SelectedValueのプロパティ値を取得できません。
この現象は、これらのプロパティのBinding.Modeの既定値がOneWayに設定されているために発生します。これらのプロパティ値を取得するには、Binding.ModeをTwoWayに設定する必要があります。
◎サンプルコード (XAML)
この現象は、これらのプロパティのBinding.Modeの既定値がOneWayに設定されているために発生します。これらのプロパティ値を取得するには、Binding.ModeをTwoWayに設定する必要があります。
◎サンプルコード (XAML)
<c1:C1ComboBox ItemsSource="{Binding xxx}"
SelectedIndex="{Binding xxx, Mode=TwoWay}"
SelectedItem="{Binding xxx, Mode=TwoWay}"
SelectedValue="{Binding xxx, Mode=TwoWay}" />
SelectedIndex="{Binding xxx, Mode=TwoWay}"
SelectedItem="{Binding xxx, Mode=TwoWay}"
SelectedValue="{Binding xxx, Mode=TwoWay}" />
旧文書番号
80532