Multiple item combo box with headers in resource dictionary?
问题 I have followed the accepted answer of this question to define a multi-column combobox with headers. It was not working for me, so I made some changes to it and now it works. Here is the xaml to create a multi-column comboBox with headers. <Page.DataContext> <vm:ItemsViewModel /> </Page.DataContext> <Page.Resources> <CollectionViewSource x:Key="UnitsCollection" Source="{Binding Units}" /> </Page.Resources> <ComboBox Grid.Row="0" Grid.Column="4" Grid.ColumnSpan="2" Grid.IsSharedSizeScope="True