Docs / UI

Glossary: TreeViewStyle

The members of TreeViewStyle, in alphabetical order.

Color legend plain property dependency property method

The style class of TreeView: the properties a style can set on it. Part styles ListBoxStyle and ExpandIconStyle (ImageStyle). Leaves out SelectedItem and ItemsSource. Framework defaults: an ExpandIconStyle of an 8 by 8 block, centered, FoldedIconColor (150, 150, 160), ExpandedIconColor (90, 90, 100), SubItemsShift DefaultTreeViewSubItemsShift (16, 0). Its list takes the defaults of 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

ExpandedIconColor 🠆

Color · The color of the icon of an expanded branch, when the tree view has no textures. By default (90, 90, 100).

ExpandIconStyle 🠆

ImageStyle · The style of the expand icon of the items, for example its size and margin. By default an 8 by 8 block, centered, with a margin of 4 before and 6 after it.

FoldedIconColor 🠆

Color · The color of the icon of a collapsed branch, when the tree view has no textures. By default (150, 150, 160).

ListBoxStyle 🠆

ListBoxStyle · The style of the list the items are shown in, for example its row colors and scroll bars.

SubItemsShift 🠆

Margin · How far each level is indented (Left) and the space above every row but the first (Top), in units. (16, 0) unless set (DefaultSettings.DefaultTreeViewSubItemsShift).

Methods

TreeViewStyle()

TreeViewStyle()

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.