BinaryRibbonScreenTip
A screen tip: the titled, described tool tip an Office-style ribbon shows for a command.
public class BinaryRibbonScreenTip : ToolTip
Inherits from / implements: ToolTip
Remarks
A screen tip carries a title, a description, an optional picture, and an optional footer offering help. It is an ordinary ToolTip, so it can be assigned to any element's ToolTip property; assigning it through ScreenTip instead also applies the timings and the show-on-disabled behaviour a ribbon command wants. A command that is disabled can say why: DisabledDescription replaces Description while the element the tip belongs to is disabled, which is the one moment a user most needs telling. F1 while the tip is on screen raises HelpRequestedEvent on the element the tip belongs to, carrying HelpTopic, so the event can be handled anywhere above that element - the group, the tab or the ribbon - rather than per command.
Members at a glance
Description | Gets or sets what the command does, in a sentence or two. |
DisabledDescription | Gets or sets what to say instead of Description while the element the tip belongs to is disabled. |
FooterImage | Gets or sets the small picture shown in the footer, beside the help text. |
FooterText | Gets or sets the footer line, usually the offer of further help. |
HelpTopic | Gets or sets what the application should open when the user presses F1 on this tip. |
Image | Gets or sets the picture shown beside the description. |
IsOwnerEnabled | Gets whether the element this tip belongs to is currently enabled. |
MaximumContentWidth | Gets or sets how wide the tip's text is allowed to run before it wraps. |
Title | Gets or sets the command's name, shown in bold at the top of the tip. |
AddHelpRequestedHandler | Adds a handler for HelpRequestedEvent to an element. |
OnClosed | Raises the Closed event. |
OnOpened | Raises the Opened event. |
RemoveHelpRequestedHandler | Removes a handler for HelpRequestedEvent from an element. |
DescriptionProperty | Identifies the Description dependency property. |
DisabledDescriptionProperty | Identifies the DisabledDescription dependency property. |
FooterImageProperty | Identifies the FooterImage dependency property. |
FooterTextProperty | Identifies the FooterText dependency property. |
HelpRequestedEvent | Occurs when the user presses F1 while a screen tip is on screen. |
HelpTopicProperty | Identifies the HelpTopic dependency property. |
ImageProperty | Identifies the Image dependency property. |
IsOwnerEnabledProperty | Identifies the IsOwnerEnabled dependency property. |
MaximumContentWidthProperty | Identifies the MaximumContentWidth dependency property. |
TitleProperty | Identifies the Title dependency property. |
Properties
Description
Gets or sets what the command does, in a sentence or two.
Value. The description. The default is null , which hides the description.
DisabledDescription
Gets or sets what to say instead of Description while the element the tip belongs to is disabled.
Value. The reason the command cannot be used. The default is null , which leaves Description showing whether the command is available or not.
HelpTopic
Gets or sets what the application should open when the user presses F1 on this tip.
Value. The topic, in whatever form the application's help understands. The default is null .
HelpRequestedEvent and the application decides what a topic means.Image
Gets or sets the picture shown beside the description.
Value. The image. The default is null , which hides the picture.
IsOwnerEnabled
Gets whether the element this tip belongs to is currently enabled.
Value. true while the element is enabled. The default is true .
DisabledDescription in place of Description. The tip is not part of the element's visual tree, so it cannot reach the element's own IsEnabled with a trigger.MaximumContentWidth
Gets or sets how wide the tip's text is allowed to run before it wraps.
Value. The width in device-independent pixels. The default is 300.
Title
Gets or sets the command's name, shown in bold at the top of the tip.
Value. The title. The default is null , which hides the title line.
Methods
AddHelpRequestedHandler
Adds a handler for HelpRequestedEvent to an element.
- element
- The element to handle the event on.
- handler
- The handler.
OnClosed
Raises the Closed event.
- e
- The data for the event.
OnOpened
Raises the Opened event.
- e
- The data for the event.
RemoveHelpRequestedHandler
Removes a handler for HelpRequestedEvent from an element.
- element
- The element the handler was added to.
- handler
- The handler.
Fields
DescriptionProperty
Identifies the Description dependency property.
DisabledDescriptionProperty
Identifies the DisabledDescription dependency property.
HelpRequestedEvent
Occurs when the user presses F1 while a screen tip is on screen.
HelpTopicProperty
Identifies the HelpTopic dependency property.
ImageProperty
Identifies the Image dependency property.
IsOwnerEnabledProperty
Identifies the IsOwnerEnabled dependency property.
MaximumContentWidthProperty
Identifies the MaximumContentWidth dependency property.
TitleProperty
Identifies the Title dependency property.