Color legend plain property dependency property method
The style class of ToolTip: the properties a style can set on it. Part style TextStyle (LabelStyle). Leaves out Content. Framework defaults: aligned left and top, HitTest off, TimeBeforeShowMs DefaultTimeBeforeShowToolTipMs, BackgroundColor DefaultToolTipBackgroundColor, Placement BottomRight, MarginFromMouseCursor DefaultToolTipMarginFromMouseCursor (14, 14).
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
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.
Placement 🠆
ToolTipPlacement · Which side of the cursor the tooltip appears on. BottomRight unless set.
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
ToolTipStyle()
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. |