<ComboBox DisplayMemberPath="PlateNum" Height="23" HorizontalAlignment="Left" Margin="109,12,0,0" Name="vehicleInfoesComboBox" SelectedValuePath="ID" VerticalAlignment="Top" Width="120" SelectionChanged="vehicleInfoesComboBox_SelectionChanged">
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel />
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
<ComboBox.ItemsSource>
<CompositeCollection>
<ComboBoxItem>全部</ComboBoxItem>
<CollectionContainer Collection="{Binding Source={StaticResource vehicleInfoesViewSource}}" />
</CompositeCollection>
</ComboBox.ItemsSource>
</ComboBox>
wpf combobox数据绑定并添加一个额外的选项
最新推荐文章于 2022-07-22 10:31:02 发布