2
我無法得到如何做這樣簡單的事情,比如從WPF Toolkit的CheckComboBox
中獲取所有選中項目的列表。如何從WPF工具包的CheckComboBox中獲取選中項目的列表
查看:
<xctk:CheckComboBox DisplayMemberPath="Name"
ItemsSource="{Binding RouteSheetRecordOperations, Mode=OneWay}"
SelectedItemsOverride="{Binding SelectedRouteSheetRecordOperations, Mode=OneWayToSource}" />
視圖模型:
Public ReadOnly Property RouteSheetRecordOperations As New ObservableCollection(Of RouteSheetRecordOperation)
Property SelectedRouteSheetRecordOperations As List(Of RouteSheetRecordOperation)
Get
Return _selectedRouteSheetRecordOperations
End Get
Set
_selectedRouteSheetRecordOperations = Value
End Set
End Property
的主要問題是,在SelectedRouteSheetRecordOperations
財產的二傳手,值始終沒有(空)。
你看看這個? https://stackoverflow.com/questions/19798451/wpf-toolkit-checklistbox-selecteditemsoverride-not-working – Snicker