Skip to end of metadata
Go to start of metadata

Remarks

Ribbon tooltip is an enhanced tooltip that supports four predefined content: header, body, image and footer. You can set the ribbon tooltip by specifying the UXRibbonToolTipService attached property on the desired controls. In addition to the ribbon-aware controls, the ribbon tooltip can also be set on any other controls that derive from Control class. When specified on ribbon-aware controls which are contained in a tab group, the tooltip will be automatically positioned under the ribbon.

The following list describes the properties that you can customize in the ribbon tooltip.

The following example shows how to configure the ribbon tooltip.

XAML

The result looks like the following figure.

Notice that the ribbon tooltip is automatically displayed under the ribbon bar which conforms to the Office ribbon specifications.

To learn more about UXRibbonToolTip, see Customizing Ribbon Tooltip.

Definition

public class UXRibbonToolTipService

Summary

The following table summarizes the members exposed in this class.

Public Constructors

UXRibbonToolTipService Constructor()Initializes a new instance of the UXRibbonToolTipService class.

Fields

ContentPropertyIdentifies the Content dependency property.
FooterPropertyIdentifies the Footer dependency property.
HeaderPropertyIdentifies the Header dependency property.
ImageSourcePropertyIdentifies the ImageSource dependency property.
RibbonTooltipStylePropertyIdentifies the RibbonTooltipStyle dependency property.

Static Methods

GetContent(DependencyObject)Gets a value that specifies the tooltip content.
GetFooter(DependencyObject)Gets a value that specifies the tooltip footer.
GetHeader(DependencyObject)Gets a value that specifies the tooltip header.
GetImageSource(DependencyObject)Gets a value that specifies the tooltip image source.
GetRibbonTooltipStyle(DependencyObject)Gets the style to apply to the tooltip.
SetContent(DependencyObject, object)Sets a value that specifies the tooltip content.
SetFooter(DependencyObject, object)Sets a value that specifies the tooltip footer.
SetHeader(DependencyObject, object)Sets a value that specifies the tooltip header.
SetImageSource(DependencyObject, ImageSource)Sets a value that specifies the tooltip image source.
SetRibbonTooltipStyle(DependencyObject, Style)Sets the style to apply to the tooltip.

Public Constructors

public UXRibbonToolTipService()

 

Fields

public static readonly DependencyProperty ContentProperty

Identifies the Content dependency property.

public static readonly DependencyProperty FooterProperty

Identifies the Footer dependency property.

public static readonly DependencyProperty HeaderProperty

Identifies the Header dependency property.

public static readonly DependencyProperty ImageSourceProperty

Identifies the ImageSource dependency property.

public static readonly DependencyProperty RibbonTooltipStyleProperty

Identifies the RibbonTooltipStyle dependency property.

Static Methods

public static object GetContent(DependencyObject obj)

Gets a value that specifies the tooltip content.

Parameters

obj 

 

public static object GetFooter(DependencyObject obj)

Gets a value that specifies the tooltip footer.

Parameters

obj 

 

public static object GetHeader(DependencyObject obj)

Gets a value that specifies the tooltip header.

Parameters

obj 

 

public static ImageSource GetImageSource(DependencyObject obj)

Gets a value that specifies the tooltip image source.

Parameters

obj 

 

public static Style GetRibbonTooltipStyle(DependencyObject obj)

Gets the style to apply to the tooltip.

Parameters

obj 

 

public static void SetContent(DependencyObject obj, object value)

Sets a value that specifies the tooltip content.

Parameters

obj 
value 

 

public static void SetFooter(DependencyObject obj, object value)

Sets a value that specifies the tooltip footer.

Parameters

obj 
value 

 

public static void SetHeader(DependencyObject obj, object value)

Sets a value that specifies the tooltip header.

Parameters

obj 
value 

 

public static void SetImageSource(DependencyObject obj, ImageSource value)

Sets a value that specifies the tooltip image source.

Parameters

obj 
value 

 

public static void SetRibbonTooltipStyle(DependencyObject obj, Style value)

Sets the style to apply to the tooltip.

Parameters

obj 
value 
  • No labels