KeyTipService 类

定义

表示一个服务,该服务提供用于在 WPF Ribbon 控件中启用和管理 KeyTips 的属性、方法和事件。

public ref class KeyTipService
public class KeyTipService
type KeyTipService = class
Public Class KeyTipService
继承
KeyTipService

字段

名称 说明
ActivatingKeyTipEvent

标识 ActivatingKeyTip 路由事件。

IsKeyTipScopeProperty

标识 IsKeyTipScope 依赖属性。

KeyTipAccessedEvent

标识 KeyTipAccessed 路由事件。

KeyTipProperty

标识 KeyTip 依赖属性。

KeyTipStyleProperty

标识 KeyTipStyle 依赖属性。

PreviewKeyTipAccessedEvent

标识 PreviewKeyTipAccessed 路由事件。

附加属性

名称 说明
IsKeyTipScope

获取或设置一个值,该值指示此属性所附加到的元素是否位于 KeyTip 范围内。

KeyTip

获取或设置要用于 KeyTip 的文本。

KeyTipStyle

获取或设置要与 KeyTip 一起使用的样式。

方法

名称 说明
AddActivatingKeyTipHandler(DependencyObject, ActivatingKeyTipEventHandler)

添加事件的 ActivatingKeyTip 路由事件处理程序。

AddKeyTipAccessedHandler(DependencyObject, KeyTipAccessedEventHandler)

添加事件的 KeyTipAccessed 路由事件处理程序。

AddPreviewKeyTipAccessedHandler(DependencyObject, KeyTipAccessedEventHandler)

添加事件的 PreviewKeyTipAccessed 路由事件处理程序。

DismissKeyTips()

隐藏当前显示的密钥提示。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetIsKeyTipScope(DependencyObject)

返回指定元素的附加属性的值 IsKeyTipScope

GetKeyTip(DependencyObject)

返回指定元素的附加属性的值 KeyTip

GetKeyTipStyle(DependencyObject)

返回指定元素的附加属性的值 KeyTipStyle

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
RemoveActivatingKeyTipHandler(DependencyObject, ActivatingKeyTipEventHandler)

删除事件的 ActivatingKeyTip 路由事件处理程序。

RemoveKeyTipAccessedHandler(DependencyObject, KeyTipAccessedEventHandler)

删除事件的 KeyTipAccessed 路由事件处理程序。

RemovePreviewKeyTipAccessedHandler(DependencyObject, KeyTipAccessedEventHandler)

删除事件的 PreviewKeyTipAccessed 路由事件处理程序。

SetIsKeyTipScope(DependencyObject, Boolean)

设置指定元素的 IsKeyTipScope 附加属性的值。

SetKeyTip(DependencyObject, String)

设置指定元素的 KeyTip 附加属性的值。

SetKeyTipStyle(DependencyObject, Style)

设置指定元素的 KeyTipStyle 附加属性的值。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

附加活动

名称 说明
ActivatingKeyTip

激活 KeyTip 时发生。

KeyTipAccessed

访问 KeyTip 时发生。

PreviewKeyTipAccessed

访问 KeyTip 时发生。

适用于