Inheritance of System.Windows.Controls.ComboBox :
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ItemsControl System.Windows.Controls.Primitives.Selector System.Windows.Controls.ComboBox
ComboBox with 9 ComboBoxItems. The circle was selected before Item 3 has been selected and still represents the selection inside the light blue ComboBox-header. There are no SelectionModes as within the ListBox. Just one item can be selected and appears in the ComboBox-header. All other items are hidden until a click on the small triangle in the header opens the drop-down list. |
<Page xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="100"> <ComboBox> <ComboBoxItem Content="Item 1"/> <ComboBoxItem><Ellipse Width="32" Height="32" Stroke="Black"/></ComboBoxItem> <ComboBoxItem Content="Item 3"/> <ComboBoxItem><Image Source="http://www.miszalok.de/Images/Madonna32.bmp"/></ComboBoxItem> <ComboBoxItem Content="Item 5"/> <ComboBoxItem><Button Content="I'm a button"/></ComboBoxItem> <ComboBoxItem Content="Item 7"/> <ComboBoxItem><CheckBox Content="Check me !"/></ComboBoxItem> <ComboBoxItem Content="Item 9"/> </ComboBox> </Page>
When you are in the Internet Explorer run ComboBox.xaml and click its items !