CarouselView.OnPositionChanged(PositionChangedEventArgs) Method

Definition

Called when the position changes. Override this method to add custom logic when the carousel position changes.

protected:
 virtual void OnPositionChanged(Microsoft::Maui::Controls::PositionChangedEventArgs ^ args);
protected virtual void OnPositionChanged(Microsoft.Maui.Controls.PositionChangedEventArgs args);
abstract member OnPositionChanged : Microsoft.Maui.Controls.PositionChangedEventArgs -> unit
override this.OnPositionChanged : Microsoft.Maui.Controls.PositionChangedEventArgs -> unit
Protected Overridable Sub OnPositionChanged (args As PositionChangedEventArgs)

Parameters

args
PositionChangedEventArgs

Event arguments containing the previous and new position values.

Applies to