RibbonRadioButton.ToolTipDescription 属性

获取或设置针对此控件显示在工具提示中的说明性文本。

命名空间:  Microsoft.Windows.Controls.Ribbon
程序集:  RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)

语法

声明
Public Property ToolTipDescription As String
    Get
    Set
public string ToolTipDescription { get; set; }
public:
property String^ ToolTipDescription {
    String^ get ();
    void set (String^ value);
}
member ToolTipDescription : string with get, set
function get ToolTipDescription () : String
function set ToolTipDescription (value : String)

属性值

类型:System.String
要在工具提示中显示的说明性文本。注册的默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。有关可以影响值的因素的更多信息,请参见 依赖项属性值优先级

依赖项属性信息

标识符字段

ToolTipDescriptionProperty

设置为 true 的元数据属性

备注

警告说明警告

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

示例

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

增强的工具提示

增强的工具提示功能

<ribbon:RibbonRadioButton 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" />

.NET Framework 安全性

请参见

参考

RibbonRadioButton 类

Microsoft.Windows.Controls.Ribbon 命名空间

RibbonToolTip