Skip to content
Cole Campbell edited this page Mar 3, 2018 · 4 revisions

Ultraviolet Framework 1.3 added support for tool tips. Tool tips are messages which can be attached to elements which will be displayed when the mouse cursor hovers over that element.

Using Tool Tips

To specify the message displayed by an element's tool tip, set the value of the ToolTip dependency property.

Tool Tip Properties

The ToolTip property on FrameworkElement is actually an alias for the ToolTip attached property defined on the static ToolTipService class. This class defines a number of other attached properties which can be used to modify the way that an element's tool tip is displayed. These are:

  • HorizontalOffset

    Specifies the tool tip's horizontal offset from its placement position.

  • VerticalOffset

    Specifies the tool tip's vertical offset from its placement position.

  • InitialShowDelay

    Specifies the delay in milliseconds before the tool tip is opened.

  • BetweenShowDelay

    Specifies he maximum time in milliseconds after the closing of a tool tip during which another tool tip can be opened without a delay.

  • ShowDuration

    Specifies the amount of time in milliseconds that the tooltip remains visible.

  • IsEnabled

    Specifies whether the element's tool tip will be displayed.

  • HasDropShadow

    Specifies whether the element's tool tip has a drop shadow.

  • ShowOnDisabled

    Specifies whether the tool tip will display even if its element is disabled.

  • Placement

    Specifies the tool tip's placement mode, which affects how it is placed relative to its target. See the reference documentation for more information.

  • PlacementRectangle

    Specifies the tool tip's placement rectangle. See the reference documentation for more information.

  • PlacementTarget

    Specifies the tool tip's placement target. See the reference documentation for more information.

Tool Tip Events

In addition, the ToolTipService class defines two routed events:

  • ToolTipOpening

    Raised when a tool tip is opened for an element.

  • ToolTipClosing

    Raised when a tool tip is closing for an element.

Clone this wiki locally