Show / Hide Table of Contents

Class ScrollViewerAutomationPeer

Exposes ScrollViewer types to UI automation.

Inheritance
System.Object
DependencyObject
AutomationPeer
FrameworkElementAutomationPeer
ScrollViewerAutomationPeer
Implements
IScrollProvider
Inherited Members
FrameworkElementAutomationPeer.Owner
FrameworkElementAutomationPeer.FromElement(UIElement)
FrameworkElementAutomationPeer.CreatePeerForElement(UIElement)
FrameworkElementAutomationPeer.GetAcceleratorKeyCore()
FrameworkElementAutomationPeer.GetAccessKeyCore()
FrameworkElementAutomationPeer.GetAutomationIdCore()
FrameworkElementAutomationPeer.GetHelpTextCore()
FrameworkElementAutomationPeer.GetItemStatusCore()
FrameworkElementAutomationPeer.GetItemTypeCore()
FrameworkElementAutomationPeer.GetLabeledByCore()
FrameworkElementAutomationPeer.GetNameCore()
FrameworkElementAutomationPeer.IsRequiredForFormCore()
FrameworkElementAutomationPeer.GetChildrenCore()
FrameworkElementAutomationPeer.GetBoundingRectangleCore()
FrameworkElementAutomationPeer.GetClickablePointCore()
FrameworkElementAutomationPeer.IsContentElementCore()
FrameworkElementAutomationPeer.IsPasswordCore()
FrameworkElementAutomationPeer.IsEnabledCore()
FrameworkElementAutomationPeer.GetLocalizedControlTypeCore()
FrameworkElementAutomationPeer.GetOrientationCore()
FrameworkElementAutomationPeer.HasKeyboardFocusCore()
FrameworkElementAutomationPeer.IsKeyboardFocusableCore()
FrameworkElementAutomationPeer.IsOffscreenCore()
FrameworkElementAutomationPeer.SetFocusCore()
AutomationPeer.EventsSource
AutomationPeer.ListenerExists(AutomationEvents)
AutomationPeer.GetAcceleratorKey()
AutomationPeer.GetAccessKey()
AutomationPeer.GetAutomationControlType()
AutomationPeer.GetAutomationId()
AutomationPeer.GetBoundingRectangle()
AutomationPeer.GetChildren()
AutomationPeer.GetClassName()
AutomationPeer.GetClickablePoint()
AutomationPeer.GetHelpText()
AutomationPeer.GetItemStatus()
AutomationPeer.GetItemType()
AutomationPeer.GetLabeledBy()
AutomationPeer.GetLocalizedControlType()
AutomationPeer.GetName()
AutomationPeer.GetOrientation()
AutomationPeer.HasKeyboardFocus()
AutomationPeer.IsContentElement()
AutomationPeer.IsControlElement()
AutomationPeer.IsEnabled()
AutomationPeer.IsKeyboardFocusable()
AutomationPeer.IsOffscreen()
AutomationPeer.IsPassword()
AutomationPeer.IsRequiredForForm()
AutomationPeer.SetFocus()
AutomationPeer.InvalidatePeer()
AutomationPeer.GetParent()
AutomationPeer.RaiseAutomationEvent(AutomationEvents)
AutomationPeer.RaisePropertyChangedEvent(AutomationProperty, Object, Object)
AutomationPeer.PeerFromProvider(IRawElementProviderSimple)
AutomationPeer.ProviderFromPeer(AutomationPeer)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ScrollViewerAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IScrollProvider

Constructors

| Improve this Doc View Source

ScrollViewerAutomationPeer(ScrollViewer)

Initializes a new instance of the ScrollViewerAutomationPeer class.

Declaration
public ScrollViewerAutomationPeer(ScrollViewer owner)
Parameters
Type Name Description
ScrollViewer owner

The ScrollViewer object that is associated with this ScrollViewerAutomationPeer instance.

Methods

| Improve this Doc View Source

GetAutomationControlTypeCore()

Gets the control type for the ScrollViewer object that is associated with this ScrollViewerAutomationPeer instance. This method is called by GetAutomationControlType().

Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type Description
AutomationControlType

A value of the enumeration.

Overrides
FrameworkElementAutomationPeer.GetAutomationControlTypeCore()
| Improve this Doc View Source

GetClassNameCore()

Gets the name of the class that is associated with this peer. This method is called by GetClassName().

Declaration
protected override string GetClassNameCore()
Returns
Type Description
System.String

The name of the associated class.

Overrides
FrameworkElementAutomationPeer.GetClassNameCore()
| Improve this Doc View Source

GetPattern(PatternInterface)

Gets an object that supports the specified pattern, based on the patterns supported by this automation peer.

Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type Name Description
PatternInterface patternInterface

One of the enumeration values.

Returns
Type Description
System.Object

The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer.

Overrides
FrameworkElementAutomationPeer.GetPattern(PatternInterface)
| Improve this Doc View Source

IsControlElementCore()

Gets a value that indicates whether the element associated with this peer is understood by the user as interactive or as contributing to the logical structure in UI.

Declaration
protected override bool IsControlElementCore()
Returns
Type Description
System.Boolean

true value to indicate that the owner control is interactive; otherwise, false.

Overrides
FrameworkElementAutomationPeer.IsControlElementCore()

Explicit Interface Implementations

| Improve this Doc View Source

IScrollProvider.HorizontallyScrollable

True if control can scroll horizontally

Declaration
bool IScrollProvider.HorizontallyScrollable { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IScrollProvider.HorizontalScrollPercent

Get the current horizontal scroll position

Declaration
double IScrollProvider.HorizontalScrollPercent { get; }
Returns
Type Description
System.Double
| Improve this Doc View Source

IScrollProvider.HorizontalViewSize

Equal to the horizontal percentage of the entire control that is currently viewable.

Declaration
double IScrollProvider.HorizontalViewSize { get; }
Returns
Type Description
System.Double
| Improve this Doc View Source

IScrollProvider.Scroll(ScrollAmount, ScrollAmount)

Request to scroll horizontally and vertically by the specified amount. The ability to call this method and simultaneously scroll horizontally and vertically provides simple panning support.

Declaration
void IScrollProvider.Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters
Type Name Description
ScrollAmount horizontalAmount
ScrollAmount verticalAmount
| Improve this Doc View Source

IScrollProvider.SetScrollPercent(Double, Double)

Request to set the current horizontal and Vertical scroll position by percent (0-100). Passing in the value of "-1", represented by the constant "NoScroll", will indicate that scrolling in that direction should be ignored. The ability to call this method and simultaneously scroll horizontally and vertically provides simple panning support.

Declaration
void IScrollProvider.SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters
Type Name Description
System.Double horizontalPercent
System.Double verticalPercent
| Improve this Doc View Source

IScrollProvider.VerticallyScrollable

True if control can scroll vertically

Declaration
bool IScrollProvider.VerticallyScrollable { get; }
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IScrollProvider.VerticalScrollPercent

Get the current vertical scroll position

Declaration
double IScrollProvider.VerticalScrollPercent { get; }
Returns
Type Description
System.Double
| Improve this Doc View Source

IScrollProvider.VerticalViewSize

Equal to the vertical percentage of the entire control that is currently viewable.

Declaration
double IScrollProvider.VerticalViewSize { get; }
Returns
Type Description
System.Double

Implements

IScrollProvider

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source