Skip to main content
.NET Framework Class Library
KeyTipService Class

Represents a service that provides properties, methods, and events to enable and manage KeyTips in WPF Ribbon controls.

Inheritance Hierarchy
SystemObject
  System.Windows.ControlsKeyTipService

Namespace:   System.Windows.Controls
Assembly:  System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)
Syntax
Public Class KeyTipService
public class KeyTipService
public ref class KeyTipService
type KeyTipService =  class end

The KeyTipService type exposes the following members.

Attached Properties
  NameDescription
Public attached property IsKeyTipScopeGets or sets a value that indicates whether the element that this property is attached to is in KeyTip scope.
Public attached property KeyTipGets or sets the text to use for the KeyTip.
Public attached property KeyTipStyleGets or sets the style to use with the KeyTip.
Top
Methods
  NameDescription
Public method Static member AddActivatingKeyTipHandlerAdds the routed event handler for the ActivatingKeyTip event.
Public method Static member AddKeyTipAccessedHandlerAdds the routed event handler for the KeyTipAccessed event.
Public method Static member AddPreviewKeyTipAccessedHandlerAdds the routed event handler for the PreviewKeyTipAccessed event.
Public method Static member DismissKeyTipsHides the KeyTips that are currently displayed.
Public method Equals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCodeServes as the default hash function. (Inherited from Object.)
Public method Static member GetIsKeyTipScopeReturns the value of the IsKeyTipScope attached property for the specified element.
Public method Static member GetKeyTipReturns the value of the KeyTip attached property for the specified element.
Public method Static member GetKeyTipStyleReturns the value of the KeyTipStyle attached property for the specified element.
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member RemoveActivatingKeyTipHandlerRemoves the routed event handler for the ActivatingKeyTip event.
Public method Static member RemoveKeyTipAccessedHandlerRemoves the routed event handler for the KeyTipAccessed event.
Public method Static member RemovePreviewKeyTipAccessedHandlerRemoves the routed event handler for the PreviewKeyTipAccessed event.
Public method Static member SetIsKeyTipScopeSets the value of the IsKeyTipScope attached property for the specified element.
Public method Static member SetKeyTipSets the value of the KeyTip attached property for the specified element.
Public method Static member SetKeyTipStyleSets the value of the KeyTipStyle attached property for the specified element.
Public method ToStringReturns a string that represents the current object. (Inherited from Object.)
Top
Attached Events
  NameDescription
Public attached event ActivatingKeyTipOccurs when the KeyTip is activated.
Public attached event KeyTipAccessedOccurs when the KeyTip is accessed.
Public attached event PreviewKeyTipAccessedOccurs when the KeyTip is accessed.
Top
Fields
  NameDescription
Public field Static member ActivatingKeyTipEventIdentifies the ActivatingKeyTip routed event.
Public field Static member IsKeyTipScopePropertyIdentifies the IsKeyTipScope dependency property.
Public field Static member KeyTipAccessedEventIdentifies the KeyTipAccessed routed event.
Public field Static member KeyTipPropertyIdentifies the KeyTip dependency property.
Public field Static member KeyTipStylePropertyIdentifies the KeyTipStyle dependency property.
Public field Static member PreviewKeyTipAccessedEventIdentifies the PreviewKeyTipAccessed routed event.
Top
Version Information

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5
Platforms

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.