Plugin.CurlEffect 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Plugin.CurlEffect --version 1.0.4
                    
NuGet\Install-Package Plugin.CurlEffect -Version 1.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Plugin.CurlEffect" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Plugin.CurlEffect" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Plugin.CurlEffect" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Plugin.CurlEffect --version 1.0.4
                    
#r "nuget: Plugin.CurlEffect, 1.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Plugin.CurlEffect@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Plugin.CurlEffect&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Plugin.CurlEffect&version=1.0.4
                    
Install as a Cake Tool

CurlEffect

A bindable, book-style page-curl control for .NET MAUI, rendered with SkiaSharp. Drag from any edge to turn pages, or drive it programmatically with sync / async / ICommand APIs.

Install

dotnet add package Plugin.CurlEffect

Register the plugin in your MauiProgram (this also wires up SkiaSharp):

using CurlEffect.Controls;

builder.UseMauiApp<App>().UseCurlEffect();

Usage

xmlns:controls="clr-namespace:CurlEffect.Controls;assembly=CurlEffect"

<controls:CurlView x:Name="Curl"
                   ItemsSource="{Binding Pages}"
                   CurrentIndex="{Binding Index, Mode=TwoWay}"
                   TurnSpeed="Normal" />

Each page is painted by a PageDrawer / DrawPage callback (a default text drawer is used otherwise), so a page can be anything you can draw on an SKCanvas.

All of the following exist as a method, an ...Async variant, and an ICommand:

API Behaviour
Next() / Previous() Turn one page
Animate(value) Animate to a view — non-negative = absolute index, negative = pages back from current; clamps to first/last
AnimateFrom(origin, value) As above, but the curl grips from a CurlOrigin (TopLeft, TopRight, Middle, BottomRight, BottomLeft)
AnimateToStart() / AnimateToEnd() Single-turn jump to the first/last view (intermediate views are not shown)
StopAnimation() Halt an in-progress turn and settle

TurnSpeed (Fast / Normal / Slow) is bindable and applies to every animated turn.

Use from any IView

The contract is exposed as ICurlView : IView, with extension methods on IView so the API can be called on any view reference (a safe no-op when the view isn't curl-capable):

using CurlEffect.Controls;

IView view = GetSomeView();
await view.AnimateToEndAsync();
view.AnimateFrom(CurlOrigin.TopRight, 0);
if (view.IsCurlView()) view.Next();

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst26.0 is compatible.  net10.0-windows10.0.19041 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 195 6/13/2026
1.0.4 142 6/11/2026
1.0.3 147 6/11/2026

# CurlEffect

A bindable, book-style **page-curl control for .NET MAUI**, rendered with SkiaSharp. Drag from any
edge to turn pages, or drive it programmatically with sync / async / `ICommand` APIs.

## Install

```sh
dotnet add package Plugin.CurlEffect
```

Register the plugin in your `MauiProgram` (this also wires up SkiaSharp):

```csharp
using CurlEffect.Controls;

builder.UseMauiApp<App>().UseCurlEffect();
```

## Usage

```xml
xmlns:controls="clr-namespace:CurlEffect.Controls;assembly=CurlEffect"

<controls:CurlView x:Name="Curl"
                  ItemsSource="{Binding Pages}"
                  CurrentIndex="{Binding Index, Mode=TwoWay}"
                  TurnSpeed="Normal" />
```

Each page is painted by a `PageDrawer` / `DrawPage` callback (a default text drawer is used
otherwise), so a page can be anything you can draw on an `SKCanvas`.

## Navigation API

All of the following exist as a **method**, an **`...Async`** variant, and an **`ICommand`**:

| API | Behaviour |
| --- | --- |
| `Next()` / `Previous()` | Turn one page |
| `Animate(value)` | Animate to a view — non-negative = absolute index, negative = pages back from current; clamps to first/last |
| `AnimateFrom(origin, value)` | As above, but the curl grips from a `CurlOrigin` (`TopLeft`, `TopRight`, `Middle`, `BottomRight`, `BottomLeft`) |
| `AnimateToStart()` / `AnimateToEnd()` | Single-turn jump to the first/last view (intermediate views are not shown) |
| `StopAnimation()` | Halt an in-progress turn and settle |

`TurnSpeed` (`Fast` / `Normal` / `Slow`) is bindable and applies to every animated turn.

## Use from any `IView`

The contract is exposed as `ICurlView : IView`, with extension methods on `IView` so the API can be
called on any view reference (a safe no-op when the view isn't curl-capable):

```csharp
using CurlEffect.Controls;

IView view = GetSomeView();
await view.AnimateToEndAsync();
view.AnimateFrom(CurlOrigin.TopRight, 0);
if (view.IsCurlView()) view.Next();
```

## License

MIT