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
SectionIndexintThe index of the section to scroll to.
ItemIndexintThe index of the item within the section to scroll to.
PositionScrollToPositionThe position to scroll to. Defaults to MakeVisible.
AnimatedboolWhether 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
ItemIndex
The index of the item within the section to scroll to.
public int ItemIndex { get; init; }
Property Value
Position
The position to scroll to. Defaults to MakeVisible.
public ScrollToPosition Position { get; init; }
Property Value
SectionIndex
The index of the section to scroll to.
public int SectionIndex { get; init; }