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
pageCountint
Properties
CanTurnBackward
public bool CanTurnBackward { get; }
Property Value
CanTurnForward
public bool CanTurnForward { get; }
Property Value
PageCount
public int PageCount { get; }
Property Value
PageIndex
public int PageIndex { get; }
Property Value
Methods
GetUnderPageIndex(PageTurnDirection)
public int GetUnderPageIndex(PageTurnDirection direction)
Parameters
directionPageTurnDirection
Returns
TryCommit(PageTurnDirection)
public bool TryCommit(PageTurnDirection direction)
Parameters
directionPageTurnDirection
Returns
Events
PropertyChanged
public event PropertyChangedEventHandler? PropertyChanged