-
Notifications
You must be signed in to change notification settings - Fork 50
UPF Tool Tips
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.
To specify the message displayed by an element's tool tip, set the value of the ToolTip
dependency property.
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.
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.
- Contributing
- Dependencies
- Basic Concepts
- First Look- Platform
- First Look- Graphics
- First Look- Audio
- First Look- Input
- First Look- Content
- First Look- UI
- sRGB Color
- Customizing SpriteBatch
- Creating Fonts
- Creating Effects
- Creating Glyph Shaders
- FreeType2 Fonts
- Rendering 3D Models