默认模式
效果
![默认](%E9%BB%98%E8%AE%A4.png)
代码
<ComboBox>
<ComboBoxItem Content="111"/>
<ComboBoxItem Content="222"/>
<ComboBoxItem Content="333"/>
</ComboBox>
高度
效果
![高度](%E9%AB%98%E5%BA%A6.png)
代码
<ComboBox Height="40" Width="130" VerticalContentAlignment="Center" Padding="10,0,10,0">
<ComboBox.ItemContainerStyle>
<Style TargetType="{x:Type ComboBoxItem}">
<Setter Property="Padding" Value="10" />
</Style>
</ComboBox.ItemContainerStyle>
<ComboBoxItem Content="111"/>
<ComboBoxItem Content="222"/>
<ComboBoxItem Content="333"/>
</ComboBox>
文本颜色
效果
![文本颜色](%E6%96%87%E6%9C%AC%E9%A2%9C%E8%89%B2.png)
代码
<ComboBox>
<ComboBox.ItemContainerStyle>
<Style TargetType="{x:Type ComboBoxItem}">
<Setter Property="Foreground" Value="Orange" />
<Setter Property="Background" Value="Gray" />
</Style>
</ComboBox.ItemContainerStyle>
<ComboBoxItem Content="111"/>
<ComboBoxItem Content="222"/>
<ComboBoxItem Content="333"/>
</ComboBox>
高亮颜色
效果
![高亮颜色](%E9%AB%98%E4%BA%AE%E9%A2%9C%E8%89%B2.png)
代码
<ComboBox>
<ComboBox.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Red" />
</ComboBox.Resources>
<ComboBoxItem Content="111"/>
<ComboBoxItem Content="222"/>
<ComboBoxItem Content="333"/>
</ComboBox>