Docs / UI

Glossary: Window Style

The properties, methods and events of Window, in alphabetical order.

Color legend plain property dependency property method

A frame with a title bar and a content area. The user moves it by its title bar, and it can be modal.

Window derives from BaseElement and has its members too. The layout page shows it in context, with code and screenshots.

Names are colored by what they are: a plain property, a method, an event or a dependency property, which a style, a binding or an animation can set.

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.

Content 🠆

BaseElement · The element in the content area. A replaced content is detached, not disposed, and a disposed one is cleared. A style can’t set it.

GeneralMouseCursorsSet 🠆

MouseCursorsSet · Static. The cursors of every element of this style type; null (the default) falls back to DefaultMouseCursorsSet.

GeneralStyle 🠆

WindowStyle · Static. The style of every element of this style type. It starts as a copy of the framework defaults; changing one of its properties updates every such element, a property it leaves unset takes its default.

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.

MouseCursorsSet 🠆

MouseCursorsSet · Read-only. The cursors the element shows: its override, else the set given to the control it is a part of, else its type’s general set, else DefaultMouseCursorsSet.

MouseCursorsSetOverride 🠆

MouseCursorsSet · The cursors of this element only, passed on to its parts that have none of their own.

StyleOverride 🠆

WindowStyle · A style for this element only, applied over the general style. Setting it to null takes its values back out.

TitleBar 🠆

BaseElement · The element in the title row. The default is a DefaultWindowTitleBar; set your own element to replace it, and clear the value to get the default one back. A replaced title bar is detached, not disposed. A style can’t set it.

Methods

Window() 🠆

Window(string name = null) · Creates a window with the default title bar. The name is used by GetElementByName.

Parameter Type Description
name string The element’s Name, which GetElementByName finds it by. Default: null.

BringToFront() 🠆

BringToFront() · Puts the shown non-modal window above its sibling windows. Does nothing for a hidden or modal window.

Hide() 🠆

Hide() · Hides the window (Visibility.Hidden).

Show() 🠆

Show() · Makes the window visible. A hidden window shown this way goes on top of the other shown windows (of the modal ones when it is modal).