UITestExtensions.Unit_SetFocus (System.Windows.FrameworkElement)
Sets the Fucus in the current element
Namespace:SoftHai.Testing.UITestAssembly:SoftHai.Testing
Syntax
Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_SetFocus( _
ByVal FE As System.Windows.FrameworkElement _
)
C#
[ExtensionAttribute()]
public void Unit_SetFocus(
this System.Windows.FrameworkElement FE
)
Parameter
FEType:
System.Windows.FrameworkElementNews item
Remarks
Example
First, the namespace is imported, so that the extension methods are available:
C#
using SoftHai.Testing.UITest;
Visual Basic
Imports SoftHai.Testing.UITest
Subsequently, the extension method be used as follows:
C#
TextBox TB = new TextBox();
...
TB.Unit_SetFocus();
Visual Basic
Dim TB as new TextBox()
...
TB.Unit_SetFocus()
This WikiPage was created with
Codeplex WikiEditor