Class ScrollViewer
Represents a scrollable area that can contain other visible elements.
Inheritance
System.Object
ScrollViewer
Inherited Members
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()
Assembly: OpenSilver.dll
public sealed class ScrollViewer : ContentControl
Constructors
|
Improve this Doc
View Source
Initializes a new instance of the ScrollViewer class.
Declaration
Fields
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty ComputedHorizontalScrollBarVisibilityProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty ComputedVerticalScrollBarVisibilityProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty ExtentHeightProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty ExtentWidthProperty
Field Value
|
Improve this Doc
View Source
Identifies the HorizontalOffset dependency property.
Declaration
public static readonly DependencyProperty HorizontalOffsetProperty
Field Value
|
Improve this Doc
View Source
Identifies the HorizontalScrollBarVisibility dependency property.
Declaration
public static readonly DependencyProperty HorizontalScrollBarVisibilityProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty ScrollableHeightProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty ScrollableWidthProperty
Field Value
|
Improve this Doc
View Source
Identifies the VerticalOffset dependency property.
Declaration
public static readonly DependencyProperty VerticalOffsetProperty
Field Value
|
Improve this Doc
View Source
Identifies the VerticalScrollBarVisibility dependency property.
Declaration
public static readonly DependencyProperty VerticalScrollBarVisibilityProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty ViewportHeightProperty
Field Value
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty ViewportWidthProperty
Field Value
Properties
|
Improve this Doc
View Source
Declaration
public Visibility ComputedHorizontalScrollBarVisibility { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public Visibility ComputedVerticalScrollBarVisibility { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public double ExtentHeight { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double ExtentWidth { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Gets the value of the horizontal offset of the content.
Declaration
public double HorizontalOffset { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Gets or sets a value that indicates whether a horizontal ScrollBar should
be displayed.
Returns a ScrollBarVisibility value that indicates whether a horizontal ScrollBar
should be displayed. The default value is Hidden.
Declaration
public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double ScrollableHeight { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double ScrollableWidth { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Gets the value of the vertical offset of the content.
Declaration
public double VerticalOffset { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Gets or sets a value that indicates whether a vertical ScrollBar should be displayed.
Declaration
public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double ViewportHeight { get; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Declaration
public double ViewportWidth { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
Declaration
public override object CreateDomElement(object parentRef, out object domElementWhereToPlaceChildren)
Parameters
Type |
Name |
Description |
System.Object |
parentRef |
|
System.Object |
domElementWhereToPlaceChildren |
|
Returns
Type |
Description |
System.Object |
|
Overrides
|
Improve this Doc
View Source
Declaration
[NotImplemented]
public static ScrollBarVisibility GetHorizontalScrollBarVisibility(DependencyObject element)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
[NotImplemented]
public static ScrollBarVisibility GetVerticalScrollBarVisibility(DependencyObject element)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public void InvalidateScrollInfo()
|
Improve this Doc
View Source
Declaration
public override void OnApplyTemplate()
Overrides
|
Improve this Doc
View Source
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
Overrides
|
Improve this Doc
View Source
Scrolls the content that is within the ScrollViewer to the specified horizontal offset position.
Declaration
public void ScrollToHorizontalOffset(double offset)
Parameters
Type |
Name |
Description |
System.Double |
offset |
The position that the content scrolls to.
|
|
Improve this Doc
View Source
Scrolls the content that is within the ScrollViewer to the specified vertical offset position.
Declaration
public void ScrollToVerticalOffset(double offset)
Parameters
Type |
Name |
Description |
System.Double |
offset |
The position that the content scrolls to.
|
|
Improve this Doc
View Source
Declaration
[NotImplemented]
public static void SetHorizontalScrollBarVisibility(DependencyObject element, ScrollBarVisibility horizontalScrollBarVisibility)
Parameters
|
Improve this Doc
View Source
Declaration
[NotImplemented]
public static void SetVerticalScrollBarVisibility(DependencyObject element, ScrollBarVisibility verticalScrollBarVisibility)
Parameters
Extension Methods