C# 클래스 Microsoft.Windows.Controls.KeyTipService

The service class which enables and manages KeyTips.
파일 보기 프로젝트 열기: kasicass/kasicass

공개 프로퍼티들

프로퍼티 타입 설명
ActivatingKeyTipEvent System.Windows.RoutedEvent
IsKeyTipScopeProperty DependencyProperty
KeyTipAccessedEvent RoutedEvent
KeyTipProperty DependencyProperty
KeyTipStyleProperty DependencyProperty
PreviewKeyTipAccessedEvent RoutedEvent

Private Properties

프로퍼티 타입 설명
AddElementForKeyTipScoping void
AddElementToScope void
AddItemToArrayListRef void
AddKeyTipFocusEventHandler void
AutoGenerateKeyTips void
CanUnregisterKeyTipElement bool
EnqueueAdornerLayerForPlacementProcessing void
EnterKeyTipMode bool
FindKeyTipMatches List
FindScope DependencyObject
FindScope DependencyObject
GetAdornerLayer AdornerLayer
GetCanClipKeyTip bool
GetCultureForElement CultureInfo
GetCustomSiblingKeyTipElements IEnumerable
GetGlobalScopeForElement DependencyObject
GetKeyTipAutoGenerationElements IEnumerable
GetNextAutoGenerationKeyTip string
HideCurrentShowingKeyTips void
HideKeyTipForElement void
HookKeyTipElementEventHandlers void
IsAutoGeneratedKeyTip bool
IsKeyTipClosingKey bool
IsKeyTipKey bool
KeyTipService System
LeaveKeyTipMode void
LeaveKeyTipMode void
LinkKeyTipControlToAdorner void
OnCustomSiblingKeyTipElementsChanged void
OnEscapeKeyDown void
OnIsKeyTipScopeChanged void
OnKeyTipAutoGenerationElementsChanged void
OnKeyTipChanged void
OnKeyTipElementLoaded void
OnKeyTipElementUnLoaded void
OnKeyTipExactMatch void
OnKeyTipKeyDown void
OnKeyTipPartialMatch void
OnKeyTipScopeChanged void
OnPreviewKeyDown void
OnPreviewKeyTipKeyUp void
OnPreviewTextInput void
OnShowingKeyTipChanged void
OnWindowDeactivated void
OnWindowLocationChanged void
OnWindowSizeChanged void
PopKeyTipScope void
PostProcessInput void
PreProcessInput void
ProcessKeyTipScopeChange void
ProcessScoping void
RaiseKeyTipFocusEvent void
ReevaluateScopes void
RegisterKeyTipElement void
RemoveKeyTipFocusEventHandler void
Reset void
ResetAutoGeneratedKeyTips void
SetCanClipKeyTip void
SetCustomSiblingKeyTipElements void
SetKeyTipAutoGenerationElements void
ShowKeyTipForElement bool
ShowKeyTips void
ShowKeyTipsForScope bool
ShowKeyTipsForScope bool
StartShowKeyTipsTimer void
UnhookKeyTipElementEventHandlers void
UnlinkKeyTipControlFromAdorner void
UnregisterKeyTipElement void

공개 메소드들

메소드 설명
AddActivatingKeyTipHandler ( DependencyObject element, ActivatingKeyTipEventHandler handler ) : void
AddKeyTipAccessedHandler ( DependencyObject element, KeyTipAccessedEventHandler handler ) : void
AddPreviewKeyTipAccessedHandler ( DependencyObject element, KeyTipAccessedEventHandler handler ) : void
DismissKeyTips ( ) : void
GetIsKeyTipScope ( DependencyObject element ) : bool
GetKeyTip ( DependencyObject element ) : string

Gets the value of KeyTip on the specified object

GetKeyTipStyle ( DependencyObject element ) : Style
RemoveActivatingKeyTipHandler ( DependencyObject element, ActivatingKeyTipEventHandler handler ) : void
RemoveKeyTipAccessedHandler ( DependencyObject element, KeyTipAccessedEventHandler handler ) : void
RemovePreviewKeyTipAccessedHandler ( DependencyObject element, KeyTipAccessedEventHandler handler ) : void
SetIsKeyTipScope ( DependencyObject element, bool value ) : void
SetKeyTip ( DependencyObject element, string value ) : void

Sets the value of KeyTip on the specified object

SetKeyTipStyle ( DependencyObject element, Style value ) : void

비공개 메소드들

메소드 설명
AddElementForKeyTipScoping ( DependencyObject element ) : void
AddElementToScope ( DependencyObject scopedParent, DependencyObject element ) : void
AddItemToArrayListRef ( object item, ArrayList &list ) : void
AddKeyTipFocusEventHandler ( KeyTipFocusEventHandler handler, List &handlerList ) : void

Helper method to add weakhandler to the list

AutoGenerateKeyTips ( WeakHashSet currentScopeElements ) : void

Method which generates keytips for elements provided by KeyTipAutoGenerationElements enumerables in current scope.

CanUnregisterKeyTipElement ( DependencyObject element ) : bool
EnqueueAdornerLayerForPlacementProcessing ( AdornerLayer adornerLayer ) : void
EnterKeyTipMode ( DependencyObject scope, bool showKeyTips, bool showAsync ) : bool
FindKeyTipMatches ( string text, DependencyObject &exactMatchElement ) : List
FindScope ( DependencyObject element ) : DependencyObject
FindScope ( DependencyObject element, bool searchVisualTreeOnly ) : DependencyObject
GetAdornerLayer ( Visual visual, bool &isScrollAdornerLayer ) : AdornerLayer

Returns the adorner layer to be used for keytips. The implementation is similar to that of AdornerLayer's except we ignore AdornerLayer of ScrollContentPresenter if its ScrollViewer has CanClipKeyTip set to false.

GetCanClipKeyTip ( DependencyObject element ) : bool
GetCultureForElement ( DependencyObject element ) : CultureInfo
GetCustomSiblingKeyTipElements ( DependencyObject element ) : IEnumerable
GetGlobalScopeForElement ( DependencyObject element ) : DependencyObject
GetKeyTipAutoGenerationElements ( DependencyObject obj ) : IEnumerable
GetNextAutoGenerationKeyTip ( DependencyObject targetAutoGenerationScope ) : string

Helper method to return next keytip string in the auto generation sequence.

HideCurrentShowingKeyTips ( ) : void
HideKeyTipForElement ( DependencyObject element ) : void
HookKeyTipElementEventHandlers ( DependencyObject element ) : void
IsAutoGeneratedKeyTip ( string keyTip ) : bool

Helper method which determines if the keytip was auto generated or not.

IsKeyTipClosingKey ( KeyEventArgs e ) : bool
IsKeyTipKey ( KeyEventArgs e ) : bool
KeyTipService ( ) : System
LeaveKeyTipMode ( ) : void
LeaveKeyTipMode ( bool restoreFocus ) : void
LinkKeyTipControlToAdorner ( KeyTipAdorner adorner, DependencyObject keyTipElement ) : void
OnCustomSiblingKeyTipElementsChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnEscapeKeyDown ( KeyEventArgs keyArgs ) : void
OnIsKeyTipScopeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnKeyTipAutoGenerationElementsChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnKeyTipChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnKeyTipElementLoaded ( object sender, RoutedEventArgs e ) : void
OnKeyTipElementUnLoaded ( object sender, RoutedEventArgs e ) : void
OnKeyTipExactMatch ( DependencyObject exactMatchElement ) : void
OnKeyTipKeyDown ( KeyEventArgs keyArgs ) : void
OnKeyTipPartialMatch ( List activeKeyTipElements, string text ) : void
OnKeyTipScopeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnPreviewKeyDown ( KeyEventArgs keyArgs ) : void
OnPreviewKeyTipKeyUp ( KeyEventArgs keyArgs ) : void
OnPreviewTextInput ( TextCompositionEventArgs textArgs ) : void
OnShowingKeyTipChanged ( DependencyObject element, DependencyPropertyChangedEventArgs e ) : void
OnWindowDeactivated ( object sender, EventArgs e ) : void
OnWindowLocationChanged ( object sender, EventArgs e ) : void
OnWindowSizeChanged ( object sender, SizeChangedEventArgs e ) : void
PopKeyTipScope ( ) : void
PostProcessInput ( object sender, ProcessInputEventArgs e ) : void
PreProcessInput ( object sender, PreProcessInputEventArgs e ) : void
ProcessKeyTipScopeChange ( DependencyObject scopeElement, bool newIsScope ) : void
ProcessScoping ( ) : void
RaiseKeyTipFocusEvent ( object sender, EventArgs e, List handlerList ) : void

Helper method to iterate through list of weak event handlers and call them until the event is handled.

ReevaluateScopes ( DependencyObject scopedParent, bool>.Dictionary processedElements ) : void

Reevalutates the scoping for all elements under the given scope.

RegisterKeyTipElement ( DependencyObject element ) : void
RemoveKeyTipFocusEventHandler ( KeyTipFocusEventHandler handler, List handlerList ) : void

Helper method to remove weakhandler from the list.

Reset ( ) : void
ResetAutoGeneratedKeyTips ( ) : void
SetCanClipKeyTip ( DependencyObject element, bool value ) : void
SetCustomSiblingKeyTipElements ( DependencyObject element, IEnumerable value ) : void
SetKeyTipAutoGenerationElements ( DependencyObject obj, IEnumerable value ) : void
ShowKeyTipForElement ( DependencyObject element ) : bool
ShowKeyTips ( ) : void
ShowKeyTipsForScope ( DependencyObject scopeElement ) : bool
ShowKeyTipsForScope ( DependencyObject scopeElement, bool pushOnEmpty ) : bool
StartShowKeyTipsTimer ( ) : void
UnhookKeyTipElementEventHandlers ( DependencyObject element ) : void
UnlinkKeyTipControlFromAdorner ( KeyTipAdorner adorner ) : void
UnregisterKeyTipElement ( DependencyObject element ) : void

메소드 상세

AddActivatingKeyTipHandler() 공개 정적인 메소드

public static AddActivatingKeyTipHandler ( DependencyObject element, ActivatingKeyTipEventHandler handler ) : void
element System.Windows.DependencyObject
handler ActivatingKeyTipEventHandler
리턴 void

AddKeyTipAccessedHandler() 공개 정적인 메소드

public static AddKeyTipAccessedHandler ( DependencyObject element, KeyTipAccessedEventHandler handler ) : void
element System.Windows.DependencyObject
handler KeyTipAccessedEventHandler
리턴 void

AddPreviewKeyTipAccessedHandler() 공개 정적인 메소드

public static AddPreviewKeyTipAccessedHandler ( DependencyObject element, KeyTipAccessedEventHandler handler ) : void
element System.Windows.DependencyObject
handler KeyTipAccessedEventHandler
리턴 void

DismissKeyTips() 공개 정적인 메소드

public static DismissKeyTips ( ) : void
리턴 void

GetIsKeyTipScope() 공개 정적인 메소드

public static GetIsKeyTipScope ( DependencyObject element ) : bool
element DependencyObject
리턴 bool

GetKeyTip() 공개 정적인 메소드

Gets the value of KeyTip on the specified object
public static GetKeyTip ( DependencyObject element ) : string
element DependencyObject
리턴 string

GetKeyTipStyle() 공개 정적인 메소드

public static GetKeyTipStyle ( DependencyObject element ) : Style
element DependencyObject
리턴 Style

RemoveActivatingKeyTipHandler() 공개 정적인 메소드

public static RemoveActivatingKeyTipHandler ( DependencyObject element, ActivatingKeyTipEventHandler handler ) : void
element DependencyObject
handler ActivatingKeyTipEventHandler
리턴 void

RemoveKeyTipAccessedHandler() 공개 정적인 메소드

public static RemoveKeyTipAccessedHandler ( DependencyObject element, KeyTipAccessedEventHandler handler ) : void
element DependencyObject
handler KeyTipAccessedEventHandler
리턴 void

RemovePreviewKeyTipAccessedHandler() 공개 정적인 메소드

public static RemovePreviewKeyTipAccessedHandler ( DependencyObject element, KeyTipAccessedEventHandler handler ) : void
element DependencyObject
handler KeyTipAccessedEventHandler
리턴 void

SetIsKeyTipScope() 공개 정적인 메소드

public static SetIsKeyTipScope ( DependencyObject element, bool value ) : void
element DependencyObject
value bool
리턴 void

SetKeyTip() 공개 정적인 메소드

Sets the value of KeyTip on the specified object
public static SetKeyTip ( DependencyObject element, string value ) : void
element DependencyObject
value string
리턴 void

SetKeyTipStyle() 공개 정적인 메소드

public static SetKeyTipStyle ( DependencyObject element, Style value ) : void
element DependencyObject
value Style
리턴 void

프로퍼티 상세

ActivatingKeyTipEvent 공개적으로 정적으로 프로퍼티

public static RoutedEvent,System.Windows ActivatingKeyTipEvent
리턴 System.Windows.RoutedEvent

IsKeyTipScopeProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty IsKeyTipScopeProperty
리턴 DependencyProperty

KeyTipAccessedEvent 공개적으로 정적으로 프로퍼티

public static RoutedEvent KeyTipAccessedEvent
리턴 RoutedEvent

KeyTipProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for KeyTip string.
public static DependencyProperty KeyTipProperty
리턴 DependencyProperty

KeyTipStyleProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty KeyTipStyleProperty
리턴 DependencyProperty

PreviewKeyTipAccessedEvent 공개적으로 정적으로 프로퍼티

public static RoutedEvent PreviewKeyTipAccessedEvent
리턴 RoutedEvent