Interface IVirtualScrollController
- Namespace
- Nalu
- Assembly
- Nalu.Maui.VirtualScroll.dll
Controller interface for VirtualScroll refresh and scroll functionality.
public interface IVirtualScrollController
Methods
LayoutUpdateCompleted()
Invoked by the handler when a batch layout update (item add/remove/move) completes. This allows layouts to update their state based on the new visible items.
void LayoutUpdateCompleted()
Refresh(Action)
Refreshes the content. Called by the platform when the user triggers a refresh.
void Refresh(Action completionCallback)
Parameters
completionCallbackActionCallback to invoke when the refresh is complete.
ScrollEnded(double, double, double, double)
Invoked by the handler when scrolling ends.
void ScrollEnded(double scrollX, double scrollY, double totalScrollableWidth, double totalScrollableHeight)
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.
ScrollStarted(double, double, double, double)
Invoked by the handler when scrolling starts.
void ScrollStarted(double scrollX, double scrollY, double totalScrollableWidth, double totalScrollableHeight)
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.
Scrolled(double, double, double, double)
Called when the scroll position changes. Invoked by the handler when scrolling occurs.
void Scrolled(double scrollX, double scrollY, double totalScrollableWidth, double totalScrollableHeight)
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.