KeyTipService Class

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

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Controls.KeyTipService

Namespace:  Microsoft.Windows.Controls
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Class KeyTipService
public class KeyTipService
public ref class KeyTipService
type KeyTipService =  class end
public class KeyTipService

The KeyTipService type exposes the following members.

Attached Properties

  Name Description
Public attached property IsKeyTipScope Gets or sets a value that indicates whether the element that this property is attached to is in KeyTip scope.
Public attached property KeyTip Gets or sets the text to use for the KeyTip.
Public attached property KeyTipStyle Gets or sets the style to use with the KeyTip.

Top

Methods

  Name Description
Public methodStatic member AddActivatingKeyTipHandler Adds the routed event handler for the ActivatingKeyTip event.
Public methodStatic member AddKeyTipAccessedHandler Adds the routed event handler for the KeyTipAccessed event.
Public methodStatic member AddPreviewKeyTipAccessedHandler Adds the routed event handler for the PreviewKeyTipAccessed event.
Public methodStatic member DismissKeyTips Hides the KeyTips that are currently displayed.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodStatic member GetIsKeyTipScope Returns the value of the IsKeyTipScope attached property for the specified element.
Public methodStatic member GetKeyTip Returns the value of the KeyTip attached property for the specified element.
Public methodStatic member GetKeyTipStyle Returns the value of the KeyTipStyle attached property for the specified element.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member RemoveActivatingKeyTipHandler Removes the routed event handler for the ActivatingKeyTip event.
Public methodStatic member RemoveKeyTipAccessedHandler Removes the routed event handler for the KeyTipAccessed event.
Public methodStatic member RemovePreviewKeyTipAccessedHandler Removes the routed event handler for the PreviewKeyTipAccessed event.
Public methodStatic member SetIsKeyTipScope Sets the value of the IsKeyTipScope attached property for the specified element.
Public methodStatic member SetKeyTip Sets the value of the KeyTip attached property for the specified element.
Public methodStatic member SetKeyTipStyle Sets the value of the KeyTipStyle attached property for the specified element.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Attached Events

  Name Description
Public attached event ActivatingKeyTip Occurs when the KeyTip is activated.
Public attached event KeyTipAccessed Occurs when the KeyTip is accessed.
Public attached event PreviewKeyTipAccessed Occurs when the KeyTip is accessed.

Top

Fields

  Name Description
Public fieldStatic member ActivatingKeyTipEvent Identifies the ActivatingKeyTip routed event.
Public fieldStatic member IsKeyTipScopeProperty Identifies the IsKeyTipScope dependency property.
Public fieldStatic member KeyTipAccessedEvent Identifies the KeyTipAccessed routed event.
Public fieldStatic member KeyTipProperty Identifies the KeyTip dependency property.
Public fieldStatic member KeyTipStyleProperty Identifies the KeyTipStyle dependency property.
Public fieldStatic member PreviewKeyTipAccessedEvent Identifies the PreviewKeyTipAccessed routed event.

Top

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.

See Also

Reference

Microsoft.Windows.Controls Namespace