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