Class PageSpreadView

Namespace
PageCurl.Maui
Assembly
PageCurl.Maui.dll

Displays two live pages with one sheet that can cross the gutter.

public sealed class PageSpreadView : Grid, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IBindableLayout, IVisualTreeElement, IGridLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout
Inheritance
PageSpreadView
Implements
Inherited Members

Constructors

PageSpreadView()

public PageSpreadView()

PageSpreadView(IPageContentSnapshotter)

public PageSpreadView(IPageContentSnapshotter snapshotter)

Parameters

snapshotter IPageContentSnapshotter

Fields

BacksideColorProperty

public static readonly BindableProperty BacksideColorProperty

Field Value

BindableProperty

BacksideDimFactorProperty

public static readonly BindableProperty BacksideDimFactorProperty

Field Value

BindableProperty

BacksideModeProperty

public static readonly BindableProperty BacksideModeProperty

Field Value

BindableProperty

CanTurnBackwardProperty

public static readonly BindableProperty CanTurnBackwardProperty

Field Value

BindableProperty

CanTurnForwardProperty

public static readonly BindableProperty CanTurnForwardProperty

Field Value

BindableProperty

FlickEnabledProperty

public static readonly BindableProperty FlickEnabledProperty

Field Value

BindableProperty

FlickVelocityThresholdProperty

public static readonly BindableProperty FlickVelocityThresholdProperty

Field Value

BindableProperty

GutterColorProperty

public static readonly BindableProperty GutterColorProperty

Field Value

BindableProperty

GutterWidthProperty

public static readonly BindableProperty GutterWidthProperty

Field Value

BindableProperty

LeftContentProperty

public static readonly BindableProperty LeftContentProperty

Field Value

BindableProperty

NextLeftContentProperty

public static readonly BindableProperty NextLeftContentProperty

Field Value

BindableProperty

NextRightContentProperty

public static readonly BindableProperty NextRightContentProperty

Field Value

BindableProperty

PageAspectRatioProperty

public static readonly BindableProperty PageAspectRatioProperty

Field Value

BindableProperty

PageChangeThresholdProperty

public static readonly BindableProperty PageChangeThresholdProperty

Field Value

BindableProperty

PreviousLeftContentProperty

public static readonly BindableProperty PreviousLeftContentProperty

Field Value

BindableProperty

PreviousRightContentProperty

public static readonly BindableProperty PreviousRightContentProperty

Field Value

BindableProperty

ReduceMotionProperty

public static readonly BindableProperty ReduceMotionProperty

Field Value

BindableProperty

RightContentProperty

public static readonly BindableProperty RightContentProperty

Field Value

BindableProperty

Properties

BacksideColor

public Color BacksideColor { get; set; }

Property Value

Color

BacksideDimFactor

public float BacksideDimFactor { get; set; }

Property Value

float

BacksideMode

public PageBacksideMode BacksideMode { get; set; }

Property Value

PageBacksideMode

CanTurnBackward

public bool CanTurnBackward { get; }

Property Value

bool

CanTurnForward

public bool CanTurnForward { get; }

Property Value

bool

FlickEnabled

public bool FlickEnabled { get; set; }

Property Value

bool

FlickVelocityThreshold

public float FlickVelocityThreshold { get; set; }

Property Value

float

GutterColor

public Color GutterColor { get; set; }

Property Value

Color

GutterWidth

public double GutterWidth { get; set; }

Property Value

double

LeftContent

public View? LeftContent { get; set; }

Property Value

View

NextLeftContent

Content shown on the back of the sheet during a forward turn.

public View? NextLeftContent { get; set; }

Property Value

View

NextRightContent

public View? NextRightContent { get; set; }

Property Value

View

Overlay

public PageTurnView Overlay { get; }

Property Value

PageTurnView

PageAspectRatio

public float PageAspectRatio { get; set; }

Property Value

float

PageChangeThreshold

public float PageChangeThreshold { get; set; }

Property Value

float

PreviousLeftContent

public View? PreviousLeftContent { get; set; }

Property Value

View

PreviousRightContent

Content shown on the back of the sheet during a backward turn.

public View? PreviousRightContent { get; set; }

Property Value

View

ReduceMotion

public bool ReduceMotion { get; set; }

Property Value

bool

RightContent

public View? RightContent { get; set; }

Property Value

View

Methods

CancelInteraction()

Immediately releases the gesture and restores both stationary pages.

public void CancelInteraction()

CreateLayoutManager()

protected override ILayoutManager CreateLayoutManager()

Returns

ILayoutManager

OnHandlerChanged()

protected override void OnHandlerChanged()

OnPropertyChanged(string?)

protected override void OnPropertyChanged(string? propertyName = null)

Parameters

propertyName string

RefreshSnapshotAsync(CancellationToken)

public Task RefreshSnapshotAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task

TryTurnBackward()

public bool TryTurnBackward()

Returns

bool

TryTurnForward()

public bool TryTurnForward()

Returns

bool

Events

PageChangeThresholdCrossed

public event EventHandler<PageChangeThresholdCrossedEventArgs>? PageChangeThresholdCrossed

Event Type

EventHandler<PageChangeThresholdCrossedEventArgs>

PageTurnCompleted

public event EventHandler<PageTurnCompletedEventArgs>? PageTurnCompleted

Event Type

EventHandler<PageTurnCompletedEventArgs>

SnapshotFailed

public event EventHandler<PageSnapshotFailedEventArgs>? SnapshotFailed

Event Type

EventHandler<PageSnapshotFailedEventArgs>