Content in ComboBox Items : ComboBox « Windows Presentation Foundation « C# / C Sharp






Content in ComboBox Items

Content in ComboBox Items
      

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center">

<ComboBox>
  <Button>Click!</Button>
  <TextBlock>Hello, world</TextBlock>
  <StackPanel Orientation="Horizontal">
    <TextBlock>Ellipse:</TextBlock>
    <Ellipse Fill="Blue" Width="100" />
  </StackPanel>
</ComboBox>
</Page>

   
    
    
    
    
    
  








Related examples in the same category

1.ComboBoxItem ContentComboBoxItem Content
2.Set Different Font for Item for ComboBoxSet Different Font for Item for ComboBox
3.Adding Image to ComboBox Item
4.Bounded to ComboBoxBounded to ComboBox
5.Gets the currently selected ComboBoxItem when the user clicks the Button.Gets the currently selected ComboBoxItem when the user clicks the Button.
6.if the user has entered text into the ComboBox instead.if the user has entered text into the ComboBox instead.
7.Handles ComboBox SelectionChanged events.Handles ComboBox SelectionChanged events.
8.Handles ComboBoxItem Selected events.Handles ComboBoxItem Selected events.
9.View and Select Items Using a Combo BoxView and Select Items Using a Combo Box
10.Call the OnPropertyChanged method when its value changedCall the OnPropertyChanged method when its value changed