RibbonCheckBox.ToolTipImageSource 属性

定义

获取或设置针对此控件显示在工具提示中的图像。

public:
 property System::Windows::Media::ImageSource ^ ToolTipImageSource { System::Windows::Media::ImageSource ^ get(); void set(System::Windows::Media::ImageSource ^ value); };
public System.Windows.Media.ImageSource ToolTipImageSource { get; set; }
member this.ToolTipImageSource : System.Windows.Media.ImageSource with get, set
Public Property ToolTipImageSource As ImageSource

属性值

ImageSource

要在工具提示中显示的图像。 已注册的默认值为 null。 有关什么可以影响值的详细信息,请参阅 Dependency Property Value Precedence(依赖项属性值优先级)

示例

以下示例演示用于创建增强工具提示的标记。

增强的工具提示功能
增强的工具提示功能

<ribbon:RibbonCheckBox Label="Ribbon Control"
                SmallImageSource="Images/Lightbulb16.png" 
                LargeImageSource="Images/Lightbulb32.png"
                KeyTip="N"
                ToolTipTitle="Command Name (Ctrl+N)" 
                ToolTipDescription="All ribbon commands should have enhanced tooltips to give the command name, shortcut key, description, and optional supplemental information."
                ToolTipImageSource="Images/Suggestion32.png"
                ToolTipFooterTitle="Press F1 for Help" 
                ToolTipFooterDescription="When practical, completely describe the command using a concise description. Link to Help only if further explanation is really necessary."
                ToolTipFooterImageSource="Images/Help16.png" />

注解

警告

每个功能区控件继承一个 FrameworkElement.ToolTip 属性。 如果设置了该 FrameworkElement.ToolTip 属性,则不会显示功能区的增强工具提示;将改为显示标准工具提示。

依赖项属性信息

标识符字段 ToolTipImageSourceProperty
元数据属性设置为 true

适用于

另请参阅