Docs / UI

UI glossary: elements

Every UI element with its properties, methods and events, one page per element.

Color legend plain property dependency property

Each element has a page listing its own properties, methods and events in alphabetical order, each with its type or signature and what it does. An element also has every member of the elements it derives from, so start with the base element, which every element derives from. The sidebar lists the members of each element under its name.

Element What it is
Base element BaseElement is the abstract base of every element: buttons, labels, panels, windows and your own elements.
Border A frame around one Content element, drawn in a solid color or from eight textures.
Button A clickable element with a text or any element as content.
CheckBox A box with a text or any element beside it.
ColorPicker A color wheel to pick a color from with a click.
ComboBox A selection image, a toggle button and a drop-down list box: the closed combo box shows the selected row, the open one lists all rows to choose from.
ContentContainer The single-element holder that Border (and a few controls, such as the check box) keep their content in, and the base class of Separator.
ContextMenu A menu that opens at the mouse on a right click, drawn above everything.
ContextMenuItem An item of a context menu: a check mark while it is checkable and checked, its content, and an arrow at the right end when it opens a sub-menu.
DefaultWindowTitleBar The title bar every window starts with: a Background image filling the bar, a centered Title text and a CloseButton at the right.
DragAndDropRepresentation The image that follows the mouse during a drag and drop.
Grid Lays its items out in columns and rows.
GridCell A cell the grid makes to hold the items of one place and span.
Image Draws a texture, stretched over the image, centered at its own size or repeated as tiles.
Label A light text element for captions, list rows and short descriptions.
ListBox A scrollable list of rows with single or multiple selection.
ListBoxItem A row of a list box.
ProgressBar A bar that fills in proportion to Value between Min and Max.
RichTextBox The full text element: read-only text with colored words, links and inline images, or an editable text field with a caret, selection, clipboard and undo.
RootElement RootElement is the top of the element tree.
ScrollableContainer Shows its items in a view of its own size and scrolls them when they are larger, with scroll bars, the mouse wheel or code.
Separator An empty element to draw a dividing line or leave a gap: give it a size along one side, stretch it along the other, and it fills itself with its BackgroundColor.
Slider A track with a thumb that picks a value between Min and Max.
StackPanel Puts its items one after another, in a column or in a row, and fits their size.
Stencil Shows a picture through a mask texture: where the mask has the key color, the picture shows, and the rest of the mask stays.
ToolTip A small popup that appears next to the mouse cursor while it rests over an element.
TreeView A tree of TreeViewItems shown as the rows of a list box.
TreeViewItem An item of a tree view: an expand icon and its content, with leaves below it.
ViewPort Reserves a rectangle in the layout and runs your own drawing code inside it, for a 3D scene, a minimap or any other render embedded in the UI.
Window A frame with a title bar and a content area.