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.UITestAssembly: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
SVType:
System.Windows.Controls.ScrollViewerNews ScrollView
pHorizontalType:
System.Windows.Automation.ScrollAmountScroll direction and magnitude in the direction horizotaler
pVerticalType:
System.Windows.Automation.ScrollAmountScroll 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