Docs / UI

Glossary: ToolTip Style

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

Color legend plain property dependency property method

A small popup that appears next to the mouse cursor while it rests over an element. You attach it through the element’s ToolTip property (see the base element), not by adding it to the tree.

ToolTip derives from BaseElement and has its members too. The controls 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

Content 🠆

BaseElement · Any element shown in the tooltip instead of a text.

GeneralMouseCursorsSet 🠆

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

GeneralStyle 🠆

ToolTipStyle · 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.

MarginFromMouseCursor 🠆

Margin · The shift from the cursor, in units: Left is added to the x position and Top to the y position, whatever the placement (use negative values to move a TopLeft tooltip away from the cursor). The other sides are not used. (14, 14) unless set (DefaultSettings.DefaultToolTipMarginFromMouseCursor), which keeps a BottomRight tooltip clear of the cursor.

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.

Placement 🠆

ToolTipPlacement · Which side of the cursor the tooltip appears on. BottomRight unless set.

StyleOverride 🠆

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

Text 🠆

string · Creates a centered Label content showing this text, styled by TextStyle.

TextStyle 🠆

LabelStyle · The style of the text content made from Text.

TimeBeforeShowMs 🠆

int · How long the mouse rests on the element before the tooltip appears, in milliseconds. 0 shows it at once.

Methods

ToolTip() 🠆

ToolTip(string name = null) · Creates a tooltip. The name is used by GetElementByName.

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

Show() 🠆

Show() · Places the tooltip at the mouse cursor and shows it after the next layout pass. The element it is attached to calls this; it does nothing for a tooltip not attached to an element.