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
snapshotterIPageContentSnapshotter
Fields
BackContentProperty
public static readonly BindableProperty BackContentProperty
Field Value
BacksideColorProperty
public static readonly BindableProperty BacksideColorProperty
Field Value
BacksideDimFactorProperty
public static readonly BindableProperty BacksideDimFactorProperty
Field Value
BacksideModeProperty
public static readonly BindableProperty BacksideModeProperty
Field Value
FlickEnabledProperty
public static readonly BindableProperty FlickEnabledProperty
Field Value
FlickVelocityThresholdProperty
public static readonly BindableProperty FlickVelocityThresholdProperty
Field Value
FrontContentProperty
public static readonly BindableProperty FrontContentProperty
Field Value
LockedAnchorProperty
public static readonly BindableProperty LockedAnchorProperty
Field Value
PageAspectRatioProperty
public static readonly BindableProperty PageAspectRatioProperty
Field Value
PageChangeThresholdProperty
public static readonly BindableProperty PageChangeThresholdProperty
Field Value
PreviousPageImageProperty
public static readonly BindableProperty PreviousPageImageProperty
Field Value
ReduceMotionProperty
public static readonly BindableProperty ReduceMotionProperty
Field Value
UnderPageImageProperty
public static readonly BindableProperty UnderPageImageProperty
Field Value
Properties
BackContent
public View? BackContent { get; set; }
Property Value
BacksideColor
public Color BacksideColor { get; set; }
Property Value
BacksideDimFactor
public float BacksideDimFactor { get; set; }
Property Value
BacksideMode
public PageBacksideMode BacksideMode { get; set; }
Property Value
FlickEnabled
public bool FlickEnabled { get; set; }
Property Value
FlickVelocityThreshold
public float FlickVelocityThreshold { get; set; }
Property Value
FrontContent
public View? FrontContent { get; set; }
Property Value
LockedAnchor
public PageAnchor LockedAnchor { get; set; }
Property Value
PageAspectRatio
public float PageAspectRatio { get; set; }
Property Value
PageChangeThreshold
public float PageChangeThreshold { get; set; }
Property Value
PreviousPageImage
public SKImage? PreviousPageImage { get; set; }
Property Value
ReduceMotion
public bool ReduceMotion { get; set; }
Property Value
Renderer
public PageTurnView Renderer { get; }
Property Value
UnderPageImage
public SKImage? UnderPageImage { get; set; }
Property Value
Methods
CancelInteraction()
public void CancelInteraction()
CreateLayoutManager()
protected override ILayoutManager CreateLayoutManager()
Returns
OnHandlerChanged()
protected override void OnHandlerChanged()
OnPropertyChanged(string?)
protected override void OnPropertyChanged(string? propertyName = null)
Parameters
propertyNamestring
RefreshSnapshotAsync(CancellationToken)
public Task RefreshSnapshotAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
TryTurn(PageTurnDirection)
public bool TryTurn(PageTurnDirection direction)
Parameters
directionPageTurnDirection
Returns
Events
PageChangeThresholdCrossed
public event EventHandler<PageChangeThresholdCrossedEventArgs>? PageChangeThresholdCrossed
Event Type
PageTurnCompleted
public event EventHandler<PageTurnCompletedEventArgs>? PageTurnCompleted
Event Type
SnapshotFailed
public event EventHandler<PageSnapshotFailedEventArgs>? SnapshotFailed