This project is read-only.

UITestExtensions.Unit_Scroll (System.Windows.Controls.ScrollViewer, System.Windows.Automation.ScrollAmount, System.Windows.Automation.ScrollAmount)

Function results in a scrolling through a ScrollView

Namespace:SoftHai.Testing.UITest
Assembly:SoftHai.Testing

Syntax

Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_Scroll( _
	ByVal SV As System.Windows.Controls.ScrollViewer, _
	ByVal pHorizontal As System.Windows.Automation.ScrollAmount, _
	ByVal pVertical As System.Windows.Automation.ScrollAmount _
)
C#
[ExtensionAttribute()]
public void Unit_Scroll(
	this System.Windows.Controls.ScrollViewer SV, 
	System.Windows.Automation.ScrollAmount pHorizontal, 
	System.Windows.Automation.ScrollAmount pVertical
)

Parameter

SV
Type:System.Windows.Controls.ScrollViewer
News ScrollView
pHorizontal
Type:System.Windows.Automation.ScrollAmount
Scroll direction and magnitude in the direction horizotaler
pVertical
Type:System.Windows.Automation.ScrollAmount
Scroll direction and magnitude in a vertical direction

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#
ScrollViewer SV = new ScrollViewer();
...
SV.Unit_Scroll(ScrollAmount.LargeDecrement, ScrollAmount.NoAmount);
Visual Basic
Dim SV as new ScrollViewer()
...
SV.Unit_Scroll(ScrollAmount.LargeDecrement, ScrollAmount.NoAmount)




This WikiPage was created with Codeplex WikiEditor

Last edited Jul 19, 2010 at 10:59 AM by SoftHai, version 2

Comments

No comments yet.