Interface IVirtualScrollController
- Namespace
- Nalu
- Assembly
- Nalu.Maui.VirtualScroll.dll
Controller interface for VirtualScroll refresh and scroll functionality.
public interface IVirtualScrollController
Methods
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.
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.