아래에 표시된 ComboBox가 있습니다. 코드 숨김이 항상 실행되지 않는 이유는 무엇입니까?WPF ComboBox가 선택 영역에서 실행되지 않습니다.
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
@Haspemulator 아니요 – sammarcow
간단한 설정으로 재생할 수 없습니다. 원하는 경우 더 많은 코드를 게시하거나 광산을 게시 할 수 있습니다. – Haspemulator