This project is read-only.

UITestExtensions.Unit_SetFocus (System.Windows.FrameworkElement)

Sets the Fucus in the current element

Namespace:SoftHai.Testing.UITest
Assembly: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

FE
Type:System.Windows.FrameworkElement
News 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

Last edited Jul 19, 2010 at 11:05 AM by SoftHai, version 1

Comments

No comments yet.