C# Class VisualUIAVerify.Features.FocusTracer

This class is focus-change listener. When focus tracing is started then AutomationElement in tree for focused control is highlighted.
Inheritance: VisualUIAVerify.Utils.FocusChangeListener
Mostra file Open project: TestStack/UIAVerify Class Usage Examples

Public Methods

Method Description
FocusTracer ( AutomationElementTreeControl TreeControl ) : System

Protected Methods

Method Description
OnAutomationFocusChanged ( AutomationElement element ) : void
OnEndFocusTracing ( ) : void

Private Methods

Method Description
HightlightNode ( AutomationElementTreeNode newFocusedNode ) : void

this method will highlight newFocusedNode in the tree

InitiliazeBackgroundWorker ( ) : void

this will set instance of background thread worker.

ReleaseInstanceOfBackgroundWorker ( ) : void

this will release instance of background thread worker.

focusChangedWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
focusChangedWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
focusChangedWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Method Details

FocusTracer() public method

public FocusTracer ( AutomationElementTreeControl TreeControl ) : System
TreeControl VisualUIAVerify.Controls.AutomationElementTreeControl
return System

OnAutomationFocusChanged() protected method

protected OnAutomationFocusChanged ( AutomationElement element ) : void
element System.Windows.Automation.AutomationElement
return void

OnEndFocusTracing() protected method

protected OnEndFocusTracing ( ) : void
return void