Class PageNavigationState

Namespace
PageCurl.Core
Assembly
PageCurl.Core.dll

Tracks a bounded page index and exposes direction-aware navigation state. It is platform-free so a consuming application can keep navigation logic testable without referencing a UI framework.

public sealed class PageNavigationState : INotifyPropertyChanged
Inheritance
PageNavigationState
Implements
Inherited Members

Constructors

PageNavigationState(int)

public PageNavigationState(int pageCount)

Parameters

pageCount int

Properties

CanTurnBackward

public bool CanTurnBackward { get; }

Property Value

bool

CanTurnForward

public bool CanTurnForward { get; }

Property Value

bool

PageCount

public int PageCount { get; }

Property Value

int

PageIndex

public int PageIndex { get; }

Property Value

int

Methods

GetUnderPageIndex(PageTurnDirection)

public int GetUnderPageIndex(PageTurnDirection direction)

Parameters

direction PageTurnDirection

Returns

int

TryCommit(PageTurnDirection)

public bool TryCommit(PageTurnDirection direction)

Parameters

direction PageTurnDirection

Returns

bool

Events

PropertyChanged

public event PropertyChangedEventHandler? PropertyChanged

Event Type

PropertyChangedEventHandler