KeyTipService 類別

定義

代表一項提供屬性、方法與事件的服務,以啟用並管理 WPF Ribbon 控制中的關鍵提示。

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

欄位

名稱 Description
ActivatingKeyTipEvent

識別路由事件。ActivatingKeyTip

IsKeyTipScopeProperty

識別 IsKeyTipScope 依賴性質。

KeyTipAccessedEvent

識別路由事件。KeyTipAccessed

KeyTipProperty

識別 KeyTip 依賴性質。

KeyTipStyleProperty

識別 KeyTipStyle 依賴性質。

PreviewKeyTipAccessedEvent

識別路由事件。PreviewKeyTipAccessed

附加屬性

名稱 Description
IsKeyTipScope

取得或設定一個值,指示該屬性所附加的元素是否屬於 KeyTip 範圍。

KeyTip

取得或設定文字用於 KeyTip。

KeyTipStyle

取得或設定用 KeyTip 使用的樣式。

方法

名稱 Description
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)

附加事件

名稱 Description
ActivatingKeyTip

當 KeyTip 被啟動時會發生。

KeyTipAccessed

當存取關鍵提示時會發生。

PreviewKeyTipAccessed

當存取關鍵提示時會發生。

適用於