ComboBoxItem Content : ComboBox « Windows Presentation Foundation « C# / CSharp Tutorial






<Window x:Class="SimpleStyles.Window1"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="SimpleStyles"
  Background="#F8F8F8">
  <ScrollViewer>
    <WrapPanel>
      <HeaderedItemsControl Header="ComboBox">
        <StackPanel>
          <ComboBox Margin="8">
            <ComboBoxItem Content="First Normal Item" />
            <ComboBoxItem Content="Second Normal Item" />
            <ComboBoxItem Content="Third Normal Item" />
            <ComboBoxItem Content="Fourth Normal Item" />
            <ComboBoxItem Content="Fifth Normal Item" />
          </ComboBox>
          <ComboBox Margin="8" IsEditable="True" Text="Edit Me">
            <ComboBoxItem Content="First Normal Item" />
            <ComboBoxItem Content="Second Normal Item" />
            <ComboBoxItem Content="Third Normal Item" />
            <ComboBoxItem Content="Fourth Normal Item" />
            <ComboBoxItem Content="Fifth Normal Item" />
          </ComboBox>
        </StackPanel>
      </HeaderedItemsControl>
   
    </WrapPanel>
  </ScrollViewer>
</Window>
WPF Combo Box Item Content








24.19.ComboBox
24.19.1.ComboBoxItem ContentComboBoxItem Content
24.19.2.Content in ComboBox ItemsContent in ComboBox Items
24.19.3.Set Different Font for Item for ComboBoxSet Different Font for Item for ComboBox
24.19.4.Adding Image to ComboBox ItemAdding Image to ComboBox Item
24.19.5.Bounded to ComboBoxBounded to ComboBox
24.19.6.Gets the currently selected ComboBoxItem when the user clicks the Button.Gets the currently selected ComboBoxItem when the user clicks the Button.
24.19.7.if the user has entered text into the ComboBoxif the user has entered text into the ComboBox
24.19.8.Handles ComboBox SelectionChanged events.Handles ComboBox SelectionChanged events.
24.19.9.Handles ComboBoxItem Selected events.Handles ComboBoxItem Selected events.
24.19.10.View and Select Items Using a Combo BoxView and Select Items Using a Combo Box
24.19.11.Call the OnPropertyChanged method when its value changedCall the OnPropertyChanged method when its value changed