Class VirtualScrollScrolledEventArgs
- Namespace
- Nalu
- Assembly
- Nalu.Maui.VirtualScroll.dll
Event arguments for the scrolled event in VirtualScroll.
public class VirtualScrollScrolledEventArgs : EventArgs
- Inheritance
-
VirtualScrollScrolledEventArgs
- Inherited Members
Constructors
VirtualScrollScrolledEventArgs(double, double, double, double, double, double)
Initializes a new instance of the VirtualScrollScrolledEventArgs class.
public VirtualScrollScrolledEventArgs(double scrollX, double scrollY, double totalScrollableWidth, double totalScrollableHeight, double viewportWidth, double viewportHeight)
Parameters
scrollXdoubleThe current horizontal scroll position in device-independent units.
scrollYdoubleThe current vertical scroll position in device-independent units.
totalScrollableWidthdoubleThe total scrollable width in device-independent units.
totalScrollableHeightdoubleThe total scrollable height in device-independent units.
viewportWidthdoubleThe width of the viewport in device-independent units.
viewportHeightdoubleThe height of the viewport in device-independent units.
Properties
RemainingScrollX
Gets the remaining horizontal scroll distance in device-independent units.
public double RemainingScrollX { get; }
Property Value
Remarks
Will be 0 if already at the end or if not scrollable horizontally.
RemainingScrollY
Gets the remaining vertical scroll distance in device-independent units.
public double RemainingScrollY { get; }
Property Value
Remarks
Will be 0 if already at the end or if not scrollable vertically.
ScrollPercentageX
Gets the horizontal scroll percentage (0.0 to 1.0), or 1.0 if not scrollable horizontally.
public double ScrollPercentageX { get; }
Property Value
ScrollPercentageY
Gets the vertical scroll percentage (0.0 to 1.0), or 1.0 if not scrollable vertically.
public double ScrollPercentageY { get; }
Property Value
ScrollX
Gets the current horizontal scroll position in device-independent units.
public double ScrollX { get; }
Property Value
ScrollY
Gets the current vertical scroll position in device-independent units.
public double ScrollY { get; }
Property Value
TotalScrollableHeight
Gets the total scrollable height in device-independent units.
public double TotalScrollableHeight { get; }
Property Value
TotalScrollableWidth
Gets the total scrollable width in device-independent units.
public double TotalScrollableWidth { get; }
Property Value
ViewportHeight
Gets the height of the viewport in device-independent units.
public double ViewportHeight { get; }
Property Value
ViewportWidth
Gets the width of the viewport in device-independent units.
public double ViewportWidth { get; }