RibbonToggleButton.ToolTipTitle 属性

定义

获取或设置针对此控件显示在工具提示中的标题文本。Gets or sets the title text that is displayed in the ToolTip for this control.

public:
 property System::String ^ ToolTipTitle { System::String ^ get(); void set(System::String ^ value); };
public string ToolTipTitle { get; set; }
member this.ToolTipTitle : string with get, set
Public Property ToolTipTitle As String

属性值

String

要在工具提示中显示的标题文本。The title text to display in the ToolTip. 已注册的默认值为 nullThe registered default is null. 有关什么可以影响值的详细信息,请参阅 Dependency Property Value Precedence(依赖项属性值优先级)For more information about what can influence the value, see Dependency Property Value Precedence.

示例

下面的示例演示用于创建增强工具提示的标记。The following example shows the markup used to create the enhanced ToolTip.

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

<ribbon:RibbonToggleButton 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 属性。Each ribbon control inherits a FrameworkElement.ToolTip property. 如果设置了该 FrameworkElement.ToolTip 属性,则不会显示功能区的增强工具提示,将改为显示标准工具提示。If the FrameworkElement.ToolTip property is set, the ribbon's enhanced ToolTip will not be shown; the standard ToolTip will be shown instead.

依赖项属性信息Dependency Property Information

标识符字段Identifier field ToolTipTitleProperty
元数据属性设置为 trueMetadata properties set to true None

适用于

另请参阅