ScrollViewerAutomationPeer ScrollViewerAutomationPeer ScrollViewerAutomationPeer Class

Exposes ScrollViewer types to Microsoft UI Automation.

Syntax

Declaration

public class ScrollViewerAutomationPeerpublic class ScrollViewerAutomationPeerPublic Class ScrollViewerAutomationPeer

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

The Windows Runtime ScrollViewer class creates a new ScrollViewerAutomationPeer as its OnCreateAutomationPeer definition. ScrollViewer is sealed, so the normal scenario of deriving from the ScrollViewer class and its existing peer isn't applicable to ScrollViewerAutomationPeer.

Default peer implementation and overrides in ScrollViewerAutomationPeer

ScrollViewerAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.

Constructors summary

Initializes a new instance of the ScrollViewerAutomationPeer class.

Properties summary

Gets a value that indicates whether the control can scroll horizontally.

Gets the current horizontal scroll position.

Gets the current horizontal view size.

Gets a value that indicates whether the control can scroll vertically.

Gets the current vertical scroll position.

Gets the vertical view size.

Methods summary

Scrolls the visible region of the content area horizontally, vertically, or both.

Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.

Constructors

  • ScrollViewerAutomationPeer(Windows.UI.Xaml.Controls.ScrollViewer)
    ScrollViewerAutomationPeer(Windows.UI.Xaml.Controls.ScrollViewer)
    ScrollViewerAutomationPeer(Windows.UI.Xaml.Controls.ScrollViewer)
    ScrollViewerAutomationPeer(Windows.UI.Xaml.Controls.ScrollViewer)

    Initializes a new instance of the ScrollViewerAutomationPeer class.

    public ScrollViewerAutomationPeer(Windows.UI.Xaml.Controls.ScrollViewer owner)public ScrollViewerAutomationPeer(Windows.UI.Xaml.Controls.ScrollViewer owner)Public Function ScrollViewerAutomationPeer(owner As Windows.UI.Xaml.Controls.ScrollViewer) As

    Parameters

Properties

  • HorizontallyScrollable
    HorizontallyScrollable
    HorizontallyScrollable
    HorizontallyScrollable

    Gets a value that indicates whether the control can scroll horizontally.

    public bool HorizontallyScrollable { get; }public bool HorizontallyScrollable { get; }Public ReadOnly Property HorizontallyScrollable As bool

    Property Value

    • bool
      bool
      bool

      true if the control can scroll horizontally; otherwise, false.

  • HorizontalScrollPercent
    HorizontalScrollPercent
    HorizontalScrollPercent
    HorizontalScrollPercent

    Gets the current horizontal scroll position.

    public double HorizontalScrollPercent { get; }public double HorizontalScrollPercent { get; }Public ReadOnly Property HorizontalScrollPercent As double

    Property Value

    • double
      double
      double

      The horizontal scroll position as a percentage of the total content area within the control.

  • HorizontalViewSize
    HorizontalViewSize
    HorizontalViewSize
    HorizontalViewSize

    Gets the current horizontal view size.

    public double HorizontalViewSize { get; }public double HorizontalViewSize { get; }Public ReadOnly Property HorizontalViewSize As double

    Property Value

    • double
      double
      double

      The horizontal size of the viewable region as a percentage of the total content area within the control.

  • VerticallyScrollable
    VerticallyScrollable
    VerticallyScrollable
    VerticallyScrollable

    Gets a value that indicates whether the control can scroll vertically.

    public bool VerticallyScrollable { get; }public bool VerticallyScrollable { get; }Public ReadOnly Property VerticallyScrollable As bool

    Property Value

    • bool
      bool
      bool

      true if the control can scroll vertically; otherwise, false.

  • VerticalScrollPercent
    VerticalScrollPercent
    VerticalScrollPercent
    VerticalScrollPercent

    Gets the current vertical scroll position.

    public double VerticalScrollPercent { get; }public double VerticalScrollPercent { get; }Public ReadOnly Property VerticalScrollPercent As double

    Property Value

    • double
      double
      double

      The vertical scroll position as a percentage of the total content area within the control.

  • VerticalViewSize
    VerticalViewSize
    VerticalViewSize
    VerticalViewSize

    Gets the vertical view size.

    public double VerticalViewSize { get; }public double VerticalViewSize { get; }Public ReadOnly Property VerticalViewSize As double

    Property Value

    • double
      double
      double

      The vertical size of the viewable region as a percentage of the total content area within the control.

Methods

  • Scroll(Windows.UI.Xaml.Automation.ScrollAmount,Windows.UI.Xaml.Automation.ScrollAmount)
    Scroll(Windows.UI.Xaml.Automation.ScrollAmount,Windows.UI.Xaml.Automation.ScrollAmount)
    Scroll(Windows.UI.Xaml.Automation.ScrollAmount,Windows.UI.Xaml.Automation.ScrollAmount)
    Scroll(Windows.UI.Xaml.Automation.ScrollAmount,Windows.UI.Xaml.Automation.ScrollAmount)

    Scrolls the visible region of the content area horizontally, vertically, or both.

    public void Scroll(Windows.UI.Xaml.Automation.ScrollAmount horizontalAmount,Windows.UI.Xaml.Automation.ScrollAmount verticalAmount)public void Scroll(Windows.UI.Xaml.Automation.ScrollAmount horizontalAmount,Windows.UI.Xaml.Automation.ScrollAmount verticalAmount)Public Function Scroll(horizontalAmount As Windows.UI.Xaml.Automation.ScrollAmount,verticalAmount As Windows.UI.Xaml.Automation.ScrollAmount) As void

    Parameters

  • SetScrollPercent(System.Double,System.Double)
    SetScrollPercent(System.Double,System.Double)
    SetScrollPercent(System.Double,System.Double)
    SetScrollPercent(System.Double,System.Double)

    Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.

    public void SetScrollPercent(System.Double horizontalPercent,System.Double verticalPercent)public void SetScrollPercent(System.Double horizontalPercent,System.Double verticalPercent)Public Function SetScrollPercent(horizontalPercent As System.Double,verticalPercent As System.Double) As void

    Parameters

    • horizontalPercent
      System.Double
      System.Double
      System.Double

      The horizontal position as a percentage of the content area's total range. Pass NoScroll if the control cannot be scrolled in this direction.

    • verticalPercent
      System.Double
      System.Double
      System.Double

      The vertical position as a percentage of the content area's total range. Pass NoScroll if the control cannot be scrolled in this direction.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.UI.Xaml.Automation.Peers.dll