maui-accessibility
Guide for making .NET MAUI apps accessible — screen reader support via SemanticProperties, heading levels, AutomationProperties…
**WORKFLOW SKILL** - Guide for migrating Xamarin.Forms apps to .NET MAUI. Covers project structure decisions, SDK-style project conversion, namespace renames, layout behavior changes, renderer-to-handler migration, effects-to-behaviors redesign, Xamarin.Essentials namespace
$ npx -y skills add davidortinau/maui-skills --skill xamarin-forms-migration --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/xamarin-forms-migrationContext preview
The summary Claude sees to decide when to auto-load this skill.
**WORKFLOW SKILL** - Guide for migrating Xamarin.Forms apps to .NET MAUI. Covers project structure decisions, SDK-style project conversion, namespace renames, layout behavior changes, renderer-to-handler migration, effects-to-behaviors redesign, Xamarin.Essentials namespace
name: xamarin-forms-migration description: > **WORKFLOW SKILL** - Guide for migrating Xamarin.Forms apps to .NET MAUI. Covers project structure decisions, SDK-style project conversion, namespace renames, layout behavior changes, renderer-to-handler migration, effects-to-behaviors redesign, Xamarin.Essentials namespace mapping, NuGet dependency compatibility, data migration, and common troubleshooting. Incorporates field-tested advice from production migrations. USE FOR: "migrate Xamarin.Forms", "upgrade to MAUI", "Xamarin to MAUI", "convert Xamarin.Forms project", "Forms migration", "namespace changes Xamarin", "renderer to handler", "effects to behaviors", "AndExpand replacement", "layout changes MAUI", "Xamarin.Essentials to MAUI". DO NOT USE FOR: migrating Xamarin.Android native apps (use xamarin-android-migration), migrating Xamarin.iOS native apps (use xamarin-ios-migration), creating new MAUI handlers from scratch (use maui-custom-handlers), performance optimization (use maui-performance).
For project templates, namespace tables, API deprecation tables, and reference code, see `references/forms-migration-api.md`.
> ⚠️ **Do not use the .NET Upgrade Assistant.** Apply namespace renames, project file updates, and package replacements directly. Build after each batch of changes and use compiler errors to guide the next round of fixes.
1. Create new .NET MAUI project (**single-project** — multi-project causes AOT/build errors) 2. Copy cross-platform code + platform code into `Platforms/<platform>/` 3. Update namespaces (XAML + C# + Essentials — see `references/forms-migration-api.md`) 4. Fix layout behavior changes (see below) 5. Migrate renderers → handlers (not shimmed renderers) 6. Migrate effects → behaviors 7. **Remove** `Microsoft.Maui.Controls.Compatibility` package 8. Update NuGet dependencies 9. Migrate app data stores 10. Delete `bin/`/`obj/`/`Resource.designer.cs`, build, test iteratively 11. Verify against .NET 10 deprecated API list
> **Strategy:** Create a new project and copy code into it — don't edit the existing project file in place.
MAUI zeroes out spacing that Xamarin.Forms set to 6. Your layouts **will break silently**:
<!-- ❌ Looks fine in Xamarin.Forms, cramped in MAUI -->
<Grid>...</Grid>
<StackLayout>...</StackLayout>
<!-- ✅ Add explicit values or restore via implicit styles in App.xaml -->
<Style TargetType="Grid">
<Setter Property="ColumnSpacing" Value="6"/>
<Setter Property="RowSpacing" Value="6"/>
</Style>> **Field advice:** Specify all layout values explicitly — don't rely on platform defaults.
<!-- ❌ Silently ignored in MAUI — image won't expand -->
<StackLayout>
<Label Text="Hello world!"/>
<Image VerticalOptions="FillAndExpand" Source="dotnetbot.png"/>
</StackLayout>
<!-- ✅ Convert to Grid with star sizing -->
<Grid RowDefinitions="Auto, *">
<Label Text="Hello world!"/>
<Image Grid.Row="1" Source="dotnetbot.png"/>
</Grid>> **Field advice:** Flatten layout trees. Replace nested hierarchies with single Grid layouts.
ScrollView inside StackLayout expands to full content height (no scroll). Place `ScrollView` in a `Grid` with a constrained row instead.
| Issue | Fix | |-------|-----| | Grid columns/rows not declared → layout broken | Always add explicit `ColumnDefinitions`/`RowDefinitions` | | `Frame` measures differently | Migrate to `Border` with `StrokeShape` | | `BoxView` invisible (default 0×0 in MAUI) | Set explicit `WidthRequest`/`HeightRequest` | | `RelativeLayout` | Replace with `Grid` (compatibility namespace only) |
> ⚠️ **Migrate all renderers to handlers. Do NOT use shimmed renderers** — they create parent wrapper views that hurt performance.
**Preferred: Customize existing handlers with mapper methods:**
// ✅ Extend existing handler — no new class needed
Microsoft.Maui.Handlers.EntryHandler.Mapper.AppendToMapping("NoBorder", (handler, view) =>
{
#if ANDROID
handler.PlatformView.Background = null;
#elif IOS || MACCATALYST
handler.PlatformView.BorderStyle = UIKit.UITextBorderStyle.None;
#endif
});For completely new native views, create a full handler (see **maui-custom-handlers** skill).
> ⚠️ **Effects are now Behaviors — this requires redesign, not just renaming.**
For new development, prefer behaviors or handler mapper customizations over effects.
`Microsoft.Maui.Controls.Compatibility` causes cascading incompatibilities. Remove it and rebuild layouts natively.
Migration is the perfect time to skip deprecated APIs entirely. Don't migrate Xamarin.Forms code to a MAUI API that's already on its way out. See the full deprecated API table in `references/forms-migration-api.md` and run the **maui-current-apis** skill.
| Issue | Fix | |-------|-----| | `Xamarin.*` namespace doesn't exist | Update to `Microsoft.Maui.*` equivalent | | CollectionView doesn't scroll | Place in Grid (not StackLayout) to constrain size | | Pop-up under page on iOS | Use `DisplayAlert
A collection of 41 skills for .NET MAUI development, UI/UX design reasoning, and Xamarin migration, designed for use with GitHub Copilot CLI and Claude Code.
Guide for making .NET MAUI apps accessible — screen reader support via SemanticProperties, heading levels, AutomationProperties…
.NET MAUI view animations, custom animations, easing functions, rotation, scale, translation, and fade effects. USE FOR: "animate…
.NET MAUI app icon configuration, splash screen setup, SVG to PNG conversion at build time, composed/adaptive icons, and…
.NET MAUI app lifecycle guidance covering the four app states (not running, running, deactivated, stopped), cross-platform Window…
Guide for .NET MAUI apps consuming .NET Aspire-hosted backend services. Covers AppHost configuration, service discovery for…
Add authentication to .NET MAUI apps. Covers WebAuthenticator for generic OAuth 2.0 / social login, and MSAL.NET for Microsoft…