| File: Core\IScrollView.cs | Web Access |
| Project: src\src\Core\src\Core.csproj (Microsoft.Maui) |
using Microsoft.Maui.Graphics; namespace Microsoft.Maui { public interface IScrollView : IContentView { /// <summary> /// Gets a value indicating the visibility rules for the horizontal scroll bar. /// </summary> ScrollBarVisibility HorizontalScrollBarVisibility { get; } /// <summary> /// Gets a value indicating the visibility rules for the vertical scroll bar. /// </summary> ScrollBarVisibility VerticalScrollBarVisibility { get; } /// <summary> /// Gets a value indicating the scroll orientation of the ScrollView. /// </summary> ScrollOrientation Orientation { get; } /// <summary> /// Gets the size of the scrollable content in the ScrollView. /// </summary> Size ContentSize { get; } /// <summary> /// Gets the current scroll position of the ScrollView along the horizontal axis. /// </summary> double HorizontalOffset { get; set; } /// <summary> /// Gets the current scroll position of the ScrollView along the vertical axis. /// </summary> double VerticalOffset { get; set; } /// <summary> /// Allows the platform ScrollView to inform that cross-platform code that a scroll operation has completed. /// </summary> void ScrollFinished(); /// <summary> /// Scrolls to a specific offset. /// </summary> /// <param name="horizontalOffset">Represents the horizontal offset.</param> /// <param name="verticalOffset">Represents the vertical offset.</param> /// <param name="instant"></param> void RequestScrollTo(double horizontalOffset, double verticalOffset, bool instant); } }