Docs / UI

Glossary: ComboBoxStyle

The members of ComboBoxStyle, in alphabetical order.

Color legend plain property dependency property method

The style class of ComboBox: the properties a style can set on it. Part styles SelectionStyle (ImageStyle), ToggleButtonStyle (ButtonStyle) and ListBoxStyle (ListBoxStyle). Framework defaults: aligned left and top, InheritState.FromChildren, BackgroundColor DefaultComboBoxBackgroundColor, and a ToggleButtonStyle DefaultComboBoxToggleButtonWidth (24) wide with the text v. The toggle button’s colors and the drop-down list’s are the defaults of Button and ListBox.

A class deriving from BaseStyle. The styles page shows it in context.

Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.

Properties

ListBoxStyle 🠆

ListBoxStyle · The style of the drop-down list, for example its row colors.

SelectionStyle 🠆

ImageStyle · The style of the image that shows the selected row. The image is only as large as the row’s content, so a background color here lies just behind the chosen value; the combo box’s own BackgroundColor colors the whole field.

ToggleButtonStyle 🠆

ButtonStyle · The style of the button that opens and closes the list, for example its width and text. Unless set, a button 24 units wide (DefaultSettings.DefaultComboBoxToggleButtonWidth) with the text v, in the colors of the other buttons.

Methods

ComboBoxStyle()

ComboBoxStyle()

IsSet() 🠆

IsSet(string propertyName) · Whether the property is assigned to this style, so the style applies it. Pass the name with nameof; an unknown name gives false.

Parameter Type Description
propertyName string The name of a property of the style; nameof keeps it right.