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
snapshotterIPageContentSnapshotter
Fields
BacksideColorProperty
public static readonly BindableProperty BacksideColorProperty
Field Value
BacksideDimFactorProperty
public static readonly BindableProperty BacksideDimFactorProperty
Field Value
BacksideModeProperty
public static readonly BindableProperty BacksideModeProperty
Field Value
CanTurnBackwardProperty
public static readonly BindableProperty CanTurnBackwardProperty
Field Value
CanTurnForwardProperty
public static readonly BindableProperty CanTurnForwardProperty
Field Value
FlickEnabledProperty
public static readonly BindableProperty FlickEnabledProperty
Field Value
FlickVelocityThresholdProperty
public static readonly BindableProperty FlickVelocityThresholdProperty
Field Value
GutterColorProperty
public static readonly BindableProperty GutterColorProperty
Field Value
GutterWidthProperty
public static readonly BindableProperty GutterWidthProperty
Field Value
LeftContentProperty
public static readonly BindableProperty LeftContentProperty
Field Value
NextLeftContentProperty
public static readonly BindableProperty NextLeftContentProperty
Field Value
NextRightContentProperty
public static readonly BindableProperty NextRightContentProperty
Field Value
PageAspectRatioProperty
public static readonly BindableProperty PageAspectRatioProperty
Field Value
PageChangeThresholdProperty
public static readonly BindableProperty PageChangeThresholdProperty
Field Value
PreviousLeftContentProperty
public static readonly BindableProperty PreviousLeftContentProperty
Field Value
PreviousRightContentProperty
public static readonly BindableProperty PreviousRightContentProperty
Field Value
ReduceMotionProperty
public static readonly BindableProperty ReduceMotionProperty
Field Value
RightContentProperty
public static readonly BindableProperty RightContentProperty
Field Value
Properties
BacksideColor
public Color BacksideColor { get; set; }
Property Value
BacksideDimFactor
public float BacksideDimFactor { get; set; }
Property Value
BacksideMode
public PageBacksideMode BacksideMode { get; set; }
Property Value
CanTurnBackward
public bool CanTurnBackward { get; }
Property Value
CanTurnForward
public bool CanTurnForward { get; }
Property Value
FlickEnabled
public bool FlickEnabled { get; set; }
Property Value
FlickVelocityThreshold
public float FlickVelocityThreshold { get; set; }
Property Value
GutterColor
public Color GutterColor { get; set; }
Property Value
GutterWidth
public double GutterWidth { get; set; }
Property Value
LeftContent
public View? LeftContent { get; set; }
Property Value
NextLeftContent
Content shown on the back of the sheet during a forward turn.
public View? NextLeftContent { get; set; }
Property Value
NextRightContent
public View? NextRightContent { get; set; }
Property Value
Overlay
public PageTurnView Overlay { get; }
Property Value
PageAspectRatio
public float PageAspectRatio { get; set; }
Property Value
PageChangeThreshold
public float PageChangeThreshold { get; set; }
Property Value
PreviousLeftContent
public View? PreviousLeftContent { get; set; }
Property Value
PreviousRightContent
Content shown on the back of the sheet during a backward turn.
public View? PreviousRightContent { get; set; }
Property Value
ReduceMotion
public bool ReduceMotion { get; set; }
Property Value
RightContent
public View? RightContent { get; set; }
Property Value
Methods
CancelInteraction()
Immediately releases the gesture and restores both stationary pages.
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
TryTurnBackward()
public bool TryTurnBackward()
Returns
TryTurnForward()
public bool TryTurnForward()
Returns
Events
PageChangeThresholdCrossed
public event EventHandler<PageChangeThresholdCrossedEventArgs>? PageChangeThresholdCrossed
Event Type
PageTurnCompleted
public event EventHandler<PageTurnCompletedEventArgs>? PageTurnCompleted
Event Type
SnapshotFailed
public event EventHandler<PageSnapshotFailedEventArgs>? SnapshotFailed