Table of Contents

Struct VirtualScrollCommandScrollToArgs

Namespace
Nalu
Assembly
Nalu.Maui.VirtualScroll.dll

Arguments for the ScrollTo command.

public readonly record struct VirtualScrollCommandScrollToArgs : IEquatable<VirtualScrollCommandScrollToArgs>
Implements
Inherited Members

Constructors

VirtualScrollCommandScrollToArgs(int, int, ScrollToPosition, bool)

Arguments for the ScrollTo command.

public VirtualScrollCommandScrollToArgs(int SectionIndex, int ItemIndex, ScrollToPosition Position = ScrollToPosition.MakeVisible, bool Animated = true)

Parameters

SectionIndex int

The index of the section to scroll to.

ItemIndex int

The index of the item within the section to scroll to.

Position ScrollToPosition

The position to scroll to. Defaults to MakeVisible.

Animated bool

Whether the scroll should be animated. Defaults to true.

Properties

Animated

Whether the scroll should be animated. Defaults to true.

public bool Animated { get; init; }

Property Value

bool

ItemIndex

The index of the item within the section to scroll to.

public int ItemIndex { get; init; }

Property Value

int

Position

The position to scroll to. Defaults to MakeVisible.

public ScrollToPosition Position { get; init; }

Property Value

ScrollToPosition

SectionIndex

The index of the section to scroll to.

public int SectionIndex { get; init; }

Property Value

int