ComboBox
Pages 35
Home
Contributing
Compiling From Source
Glossary
Getting Started with MDIX
Getting Started
Super Quick Start
Tutorial On YouTube
Frequently Asked Questions
Examples Repository
Release Notes
Pack Icon Changes
2.0.0 Breaking Changes
Controls
All Control Styles
Buttons
ComboBox
Dialogs
PopupBox
Snackbar
TextBox
Toggle Button
Transitions
Icons
Theming
Advanced Theming
Brush Names
Custom Palette Hues
Fonts
Overriding Material Design Styles
Swatches and Recommended Colors
Miscellaneous
MahApps Integration
Performance
Strong Naming
.NET 4.0 Compatibility
Projects using Material Design
Understanding Routed Commands
Clone this wiki locally
The ComboBox control presents users with a list of options. The list is shown and hidden as the control expands and collapses. In its default state, the list is collapsed, displaying only one choice.
Changing the color of the underline
The color of the underline can be changed by applying the TextFieldAssist.UnderlineBrush brush.
<ComboBox Style="{DynamicResource MaterialDesignComboBox}" materialDesign:TextFieldAssist.UnderlineBrush="Chocolate" >
<ComboBoxItem IsSelected="True">Item 1</ComboBoxItem>
</ComboBox>
Styles
The Material Design In XAML Toolkit provides two styles:
- MaterialDesignComboBox
- MaterialDesignFloatingHintComboBox
MaterialDesignComboBox
The default ComboBox in the Material Design.
<ComboBox Style="{DynamicResource MaterialDesignComboBox}">
<ComboBoxItem IsSelected="True">Item 1</ComboBoxItem>
</ComboBox>
MaterialDesignFloatingHintComboBox
Adds a customizable hint above the item preview.
<ComboBox Style="{DynamicResource MaterialDesignFloatingHintComboBox}" materialDesign:HintAssist.Hint="Hint text">
<ComboBoxItem IsSelected="True">Item 1</ComboBoxItem>
</ComboBox>
Changing the color of the Hint
The color of the hint can be changed by applying the HintAssist.Foreground brush.
<ComboBox Style="{DynamicResource MaterialDesignFloatingHintComboBox}" materialDesign:HintAssist.Foreground="DeepPink" materialDesign:HintAssist.Hint="Hint text">
<ComboBoxItem IsSelected="True">Item 1</ComboBoxItem>
</ComboBox>
If you see any mistake or want to contribute to this wiki feel free.