Plugin.Maui.Onboarding
0.1.0
See the version list below for details.
dotnet add package Plugin.Maui.Onboarding --version 0.1.0
NuGet\Install-Package Plugin.Maui.Onboarding -Version 0.1.0
<PackageReference Include="Plugin.Maui.Onboarding" Version="0.1.0" />
<PackageVersion Include="Plugin.Maui.Onboarding" Version="0.1.0" />
<PackageReference Include="Plugin.Maui.Onboarding" />
paket add Plugin.Maui.Onboarding --version 0.1.0
#r "nuget: Plugin.Maui.Onboarding, 0.1.0"
#:package Plugin.Maui.Onboarding@0.1.0
#addin nuget:?package=Plugin.Maui.Onboarding&version=0.1.0
#tool nuget:?package=Plugin.Maui.Onboarding&version=0.1.0
Plugin.Maui.Onboarding
An app-tour / walkthrough control for .NET MAUI: a dark scrim with a spotlight hole cut into it, moving from control to control with a tooltip card explaining each one — the classic "coach mark" first-run tour.
How it's meant to be used
Mark the controls you want to spotlight with OnboardingTargetBehavior:
<Button Text="Add entry">
<Button.Behaviors>
<onboarding:OnboardingTargetBehavior Key="AddEntryButton" />
</Button.Behaviors>
</Button>
Build a tour naming those keys in order, and start it:
OnboardingTour tour = OnboardingTourBuilder.Create("FirstRunTour")
.AddStep(new OnboardingStep
{
TargetKey = "AddEntryButton",
Title = "Add an entry",
Description = "Tap here to log time for the day.",
Shape = OnboardingSpotlightShape.Circle
})
.Build();
var coordinator = new OnboardingCoordinator();
await coordinator.StartTourIfNotCompletedAsync(tour);
OnboardingCoordinator is the one type consumers drive directly — it resolves
each step's target bounds, pushes a transparent modal page over the current
Shell content, animates the spotlight between steps, and marks the tour
completed (via Preferences) once the user finishes or skips it, so
StartTourIfNotCompletedAsync won't show it again. Call ReplayTourAsync to
force it to run again regardless of completion state.
Customizing colors
The scrim and tooltip card both render with sensible defaults (#B3000000
scrim, #E6000000 tooltip background, transparent tooltip border) out of the
box. Override any of them via OnboardingCoordinator, at any time, including
mid-tour:
var coordinator = new OnboardingCoordinator
{
ScrimColor = Colors.Black.WithAlpha(0.8f),
TooltipBackgroundColor = Color.FromArgb("#1A1A2E"),
TooltipBorderColor = Color.FromArgb("#3A3A5E")
};
Leaving any of them unset (null, the default) keeps the built-in default —
for ScrimColor specifically, that also means it still falls back to any
onboarding_scrim_light/onboarding_scrim_dark app resources, the way it did
before this API existed.
Prerequisites
- A Shell-based app (
OnboardingCoordinatorpushes its overlay viaShell.Current.Navigation).
Project structure
src/Plugin.Maui.Onboarding/
OnboardingCoordinator.cs the entry point — starts/advances/skips a tour
OnboardingTour.cs, OnboardingTourBuilder.cs, OnboardingStep.cs
OnboardingTargetBehavior.cs attach to any VisualElement to make it spotlightable
OnboardingSpotlightShape.cs, OnboardingTooltipPlacement.cs, OnboardingArrowDirection.cs
Internals/ target registry/locator, geometry math, the scrim drawable
Views/ the overlay page/view and tooltip card (XAML)
example/Plugin.Maui.Onboarding.Example/ a MAUI app scaffold for trying the library
License
MIT — see LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.0 is compatible. |
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.60)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.60)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.