空の要素を持つコレクションで2つのコンボボックスが必要です。それの後、2つのコンボボックスを選択しCombobox CompositeCollection
<ComboBox x:Name="itemEditPageComboBox"
...
ItemsSource="{StaticResource ItemsColl}"
....
/>
Collections:
<CompositeCollection x:Key="ItemsColl">
<ComboBoxItem Content="" />
<CollectionContainer Collection="{Binding Source={StaticResource ElementsCollection}}" />
</CompositeCollection>
<CollectionViewSource x:Key="ElementsCollection" Source="{Binding Path=...}" />
行動
順次 - そのうちの一つは、空の要素を削除します
は、私は2つのコンボボックスを使用してください。
エラー:
System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='ComboBoxItem'
何をすべきかを教えてください?
よろしくお願いいたします。