C# Class Fluent.KeyTipAdorner

Represents adorner for KeyTips. KeyTipAdorners is chained to produce one from another. Detaching root adorner couses detaching all adorners in the chain
Inheritance: System.Windows.Documents.Adorner
Datei anzeigen Open project: Gainedge/BetterExplorer Class Usage Examples

Public Methods

Method Description
Attach ( ) : void

Attaches this adorner to the adorned element

Back ( ) : void
Detach ( ) : void

Detaches this adorner from the adorned element

Forward ( string keys, bool click ) : bool

Forwards to the elements with the given keys

KeyTipAdorner ( UIElement adornedElement, UIElement keyTipElementContainer, KeyTipAdorner parentAdorner ) : System

Construcotor

Terminate ( ) : void

Terminate whole key tip's adorner chain

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

Positions child elements and determines a size for the control

GetVisualChild ( int index ) : Visual

Returns a child at the specified index from a collection of child elements

MeasureOverride ( Size constraint ) : Size

Measures KeyTips

Private Methods

Method Description
FilterKeyTips ( ) : void
FindKeyTips ( UIElement element, bool hide ) : void
Forward ( UIElement element ) : void
Forward ( UIElement element, bool click ) : void
GetAdornerLayer ( UIElement element ) : AdornerLayer
GetGroupBox ( DependencyObject element ) : RibbonGroupBox

Gets parent RibbonGroupBox or null

GetTopLevelElement ( UIElement element ) : UIElement
IsElementsStartWith ( string keys ) : bool

Is one of the elements starts with the given chars

IsWithinQuickAccessToolbar ( DependencyObject element ) : bool
IsWithinRibbonToolbarInTwoLine ( DependencyObject element ) : bool
Log ( string format ) : void
OnDelayAttach ( object sender, EventArgs args ) : void
OnFocusLost ( object sender, RoutedEventArgs e ) : void
OnFocusedElementPreviewTextInput ( object sender, System.Windows.Input.TextCompositionEventArgs e ) : void
OnInputActionOccured ( object sender, RoutedEventArgs e ) : void
OnPreviewKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnTimerFocusTrackingTick ( object sender, EventArgs e ) : void
TryGetElement ( string keys ) : UIElement

Gets element keytipped by keys

UpdateKeyTipPositions ( ) : void
WindowProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr

Method Details

ArrangeOverride() protected method

Positions child elements and determines a size for the control
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size The final area within the parent /// that this element should use to arrange /// itself and its children
return System.Windows.Size

Attach() public method

Attaches this adorner to the adorned element
public Attach ( ) : void
return void

Back() public method

public Back ( ) : void
return void

Detach() public method

Detaches this adorner from the adorned element
public Detach ( ) : void
return void

Forward() public method

Forwards to the elements with the given keys
public Forward ( string keys, bool click ) : bool
keys string Keys
click bool If true the element will be clicked
return bool

GetVisualChild() protected method

Returns a child at the specified index from a collection of child elements
protected GetVisualChild ( int index ) : Visual
index int The zero-based index of the requested child element in the collection
return Visual

KeyTipAdorner() public method

Construcotor
public KeyTipAdorner ( UIElement adornedElement, UIElement keyTipElementContainer, KeyTipAdorner parentAdorner ) : System
adornedElement UIElement
keyTipElementContainer UIElement The element which is container for elements
parentAdorner KeyTipAdorner Parent adorner or null
return System

MeasureOverride() protected method

Measures KeyTips
protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size The available size that this element can give to child elements.
return System.Windows.Size

Terminate() public method

Terminate whole key tip's adorner chain
public Terminate ( ) : void
return void