Class PageCurlView

Namespace
PageCurl.Maui
Assembly
PageCurl.Maui.dll

Hosts live MAUI content while flat and uses cached snapshots during a curl.

public sealed class PageCurlView : 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
PageCurlView
Implements
Inherited Members

Constructors

PageCurlView()

public PageCurlView()

PageCurlView(IPageContentSnapshotter)

public PageCurlView(IPageContentSnapshotter snapshotter)

Parameters

snapshotter IPageContentSnapshotter

Fields

BackContentProperty

public static readonly BindableProperty BackContentProperty

Field Value

BindableProperty

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

FlickEnabledProperty

public static readonly BindableProperty FlickEnabledProperty

Field Value

BindableProperty

FlickVelocityThresholdProperty

public static readonly BindableProperty FlickVelocityThresholdProperty

Field Value

BindableProperty

FrontContentProperty

public static readonly BindableProperty FrontContentProperty

Field Value

BindableProperty

LockedAnchorProperty

public static readonly BindableProperty LockedAnchorProperty

Field Value

BindableProperty

PageAspectRatioProperty

public static readonly BindableProperty PageAspectRatioProperty

Field Value

BindableProperty

PageChangeThresholdProperty

public static readonly BindableProperty PageChangeThresholdProperty

Field Value

BindableProperty

PreviousPageImageProperty

public static readonly BindableProperty PreviousPageImageProperty

Field Value

BindableProperty

ReduceMotionProperty

public static readonly BindableProperty ReduceMotionProperty

Field Value

BindableProperty

UnderPageImageProperty

public static readonly BindableProperty UnderPageImageProperty

Field Value

BindableProperty

Properties

BackContent

public View? BackContent { get; set; }

Property Value

View

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

FlickEnabled

public bool FlickEnabled { get; set; }

Property Value

bool

FlickVelocityThreshold

public float FlickVelocityThreshold { get; set; }

Property Value

float

FrontContent

public View? FrontContent { get; set; }

Property Value

View

LockedAnchor

public PageAnchor LockedAnchor { get; set; }

Property Value

PageAnchor

PageAspectRatio

public float PageAspectRatio { get; set; }

Property Value

float

PageChangeThreshold

public float PageChangeThreshold { get; set; }

Property Value

float

PreviousPageImage

public SKImage? PreviousPageImage { get; set; }

Property Value

SKImage

ReduceMotion

public bool ReduceMotion { get; set; }

Property Value

bool

Renderer

public PageTurnView Renderer { get; }

Property Value

PageTurnView

UnderPageImage

public SKImage? UnderPageImage { get; set; }

Property Value

SKImage

Methods

CancelInteraction()

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

TryTurn(PageTurnDirection)

public bool TryTurn(PageTurnDirection direction)

Parameters

direction PageTurnDirection

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>