0
我有一个组合框,如下所示。为什么代码隐藏不是始终开启?WPF组合框不选择触发
XAML:
<ComboBox Height="23"
Name="cbAppendCreate"
VerticalAlignment="Top"
Width="120"
Margin="{StaticResource ConsistentMargins}"
ItemsSource="{Binding Path=CbCreateAppendItems}"
SelectedValue="{Binding Path=CbAppendCreate,UpdateSourceTrigger=PropertyChanged}" />
代码隐藏:
private string cbAppendCreate;
public string CbAppendCreate {
get {
//....
return cbAppendCreate
}
set { //This doesn't fire when selecting the first of 2 Items,
//but always fires when selecting the 2nd of two items
//....
cbAppendCreate = value;
}
}
输出窗口中的任何绑定错误? – Haspemulator 2013-02-15 21:07:00
@Haspemulator号码 – sammarcow 2013-02-15 21:16:51
无法在我简单的设置中重现。发布更多的代码,或者我可以发布我的,如果你想。 – Haspemulator 2013-02-15 21:41:38