Docs / UI

Glossary: WindowStyle

The members of WindowStyle, in alphabetical order.

Color legend plain property dependency property method

The style class of Window: the properties a style can set on it. Part style BorderStyle. Leaves out TitleBar and Content. Framework defaults: a border DefaultWindowBorderThickness thick, filled with DefaultWindowBackgroundColor, in DefaultWindowBorderColor.

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

BorderStyle 🠆

BorderStyle · The style of the window’s frame: its Thickness, ContentAreaMargin, frame color (ForegroundColor), content area color (BackgroundColor) and TexturesPath. The window follows changes made to the style object later.

IsModal 🠆

bool · Makes the window modal: drawn above everything over a shade, and the only part of the UI that gets the mouse while shown. Off by default.

Methods

WindowStyle()

WindowStyle()

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.