Maui Safe Area
dotnet/skills
.NET MAUI safe area and edge-to-edge layout guidance for .NET 10+.
Always-on guardrail for .NET MAUI API currency. An agent skill from davidortinau/maui-skills.
$ npx skills add davidortinau/maui-skills --skill maui-current-apis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install davidortinau/maui-skills maui-current-apis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/davidortinau/maui-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/maui-skills/skills/maui-current-apis .claude/skills/maui-current-apis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "maui-current-apis" agent skill from https://github.com/davidortinau/maui-skills/tree/main/plugins/maui-skills/skills/maui-current-apis into .claude/skills/maui-current-apis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "maui-current-apis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/davidortinau/maui-skills/tree/main/plugins/maui-skills/skills/maui-current-apisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add davidortinau/maui-skills --skill maui-current-apis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install davidortinau/maui-skills maui-current-apis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidortinau/maui-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/maui-skills/skills/maui-current-apis .agents/skills/maui-current-apis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "maui-current-apis" agent skill from https://github.com/davidortinau/maui-skills/tree/main/plugins/maui-skills/skills/maui-current-apis into .agents/skills/maui-current-apis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "maui-current-apis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davidortinau/maui-skills --skill maui-current-apis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install davidortinau/maui-skills maui-current-apis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidortinau/maui-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/maui-skills/skills/maui-current-apis .cursor/skills/maui-current-apis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "maui-current-apis" agent skill from https://github.com/davidortinau/maui-skills/tree/main/plugins/maui-skills/skills/maui-current-apis into .cursor/skills/maui-current-apis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "maui-current-apis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/davidortinau/maui-skills.git --path plugins/maui-skills/skills/maui-current-apis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add davidortinau/maui-skills --skill maui-current-apis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install davidortinau/maui-skills maui-current-apis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidortinau/maui-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/maui-skills/skills/maui-current-apis .gemini/skills/maui-current-apis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "maui-current-apis" agent skill from https://github.com/davidortinau/maui-skills/tree/main/plugins/maui-skills/skills/maui-current-apis into .gemini/skills/maui-current-apis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "maui-current-apis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install davidortinau/maui-skills maui-current-apisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add davidortinau/maui-skills --skill maui-current-apis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/davidortinau/maui-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/maui-skills/skills/maui-current-apis .github/skills/maui-current-apis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "maui-current-apis" agent skill from https://github.com/davidortinau/maui-skills/tree/main/plugins/maui-skills/skills/maui-current-apis into .github/skills/maui-current-apis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "maui-current-apis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davidortinau/maui-skills --skill maui-current-apis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install davidortinau/maui-skills maui-current-apis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidortinau/maui-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/maui-skills/skills/maui-current-apis .opencode/skills/maui-current-apis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "maui-current-apis" agent skill from https://github.com/davidortinau/maui-skills/tree/main/plugins/maui-skills/skills/maui-current-apis into .opencode/skills/maui-current-apis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "maui-current-apis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
maui-current-apisAlways-on guardrail for .NET MAUI API currency. An agent skill from davidortinau/maui-skills.
Maui Current APIs is an agent skill from davidortinau/maui-skills. Always-on guardrail for .NET MAUI API currency. Prevents AI coding agents from using deprecated, obsolete, or removed APIs across XAML/C, Blazor Hybrid, and MauiReactor. Includes a reasoning framework for detecting project target framework and library versions, plus a curated table of the most common deprecated API traps in .NET MAUI 10. USE FOR: "deprecated API", "obsolete API", "API migration", "MAUI breaking changes", "check API currency", "review MAUI code", "generate MAUI code", "edit MAUI code". DO NOT USE…
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `evals/evals.json`).
It sits in Mobile, covering Cross-platform mobile apps. It works with Blazor and C#. The repository describes itself as: .NET MAUI skills for GitHub Copilot and Claude Code. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 79bb4bf. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are xml).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Maui Current APIs loads about 2.7k tokens when it runs. Until then it costs about 173 tokens; SKILL.md has 1,007 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from davidortinau/maui-skills at commit 79bb4bf, republished under its MIT licence (© davidortinau). 1,007 words, ~2,731 tokens.
.claude/skills/maui-current-apis/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.This skill prevents you from generating code that uses deprecated, obsolete, or removed APIs. Read this before writing any .NET MAUI, Blazor Hybrid, or MauiReactor code.
Follow these steps before generating any MAUI-related code:
Read the project's .csproj file and find <TargetFramework> or <TargetFrameworks>:
<!-- Single target -->
<TargetFramework>net10.0-android</TargetFramework>
<!-- Multi-target (typical MAUI project) -->
<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst;net10.0-windows10.0.19041.0</TargetFrameworks>The version number (net10.0, net9.0, net8.0) determines which APIs are available.
Always target the version in the project file — never assume a version.
Scan <PackageReference> entries and <ItemGroup> for key packages:
| Package | What it tells you |
|---|---|
Microsoft.Maui.Controls | MAUI version (if explicit) |
CommunityToolkit.Maui | Toolkit version — APIs change between major versions |
CommunityToolkit.Mvvm | MVVM Toolkit version — needed for WeakReferenceMessenger |
Reactor.Maui | MauiReactor version — v3+ has different APIs than v2 |
Microsoft.AspNetCore.Components.WebView.Maui | Blazor Hybrid version |
If no explicit MAUI package version is listed, the MAUI SDK version matches the <TargetFramework> .NET version.
Before using any API, ask yourself:
Microsoft.Maui.Controls.Compatibility.* types are migration aids, not recommended for new code.using Xamarin.Forms or using Xamarin.Essentials — these are not MAUI.Compatibility namespace in new projects (Compatibility.RelativeLayout, Compatibility.StackLayout, etc.).async method names when both sync-named and async-named versions exist (e.g., DisplayAlertAsync over DisplayAlert).| ❌ Deprecated / Removed | ✅ Use Instead | Notes |
|---|---|---|
ListView | CollectionView | ListView, EntryCell, ImageCell, SwitchCell, TextCell, ViewCell, and Cell are all deprecated in .NET 10 |
TableView | CollectionView or custom layout | Deprecated in .NET 10 |
Frame | Border | Frame is a Xamarin.Forms legacy control; Border is the MAUI replacement with StrokeShape support |
Compatibility.RelativeLayout | Grid | Migration-only; removed from templates in .NET 10 |
Compatibility.StackLayout | VerticalStackLayout / HorizontalStackLayout | The compatibility StackLayout wraps Xamarin layout logic. Use the native MAUI stack layouts for better performance |
| ❌ Deprecated / Removed | ✅ Use Instead | Notes |
|---|---|---|
ClickGestureRecognizer | TapGestureRecognizer | Removed in .NET 10 |
Accelerator | KeyboardAccelerator | Removed from Microsoft.Maui.Controls in .NET 10 |
| ❌ Deprecated / Removed | ✅ Use Instead | Notes |
|---|---|---|
Page.IsBusy | ActivityIndicator | IsBusy is obsolete in .NET 10; use an explicit activity indicator |
DisplayAlert() | DisplayAlertAsync() | Sync-named versions deprecated; use async versions |
DisplayActionSheet() | DisplayActionSheetAsync() | Same as above |
MessagingCenter | WeakReferenceMessenger (CommunityToolkit.Mvvm) | Made internal in .NET 10 |
| ❌ Deprecated / Removed | ✅ Use Instead | Notes |
|---|---|---|
FadeTo() | FadeToAsync() | All animation extension methods renamed to *Async in .NET 10 |
RotateTo(), ScaleTo(), TranslateTo(), etc. | RotateToAsync(), ScaleToAsync(), TranslateToAsync(), etc. | Same pattern — RelRotateTo → RelRotateToAsync, RelScaleTo → RelScaleToAsync, LayoutTo → LayoutToAsync |
| ❌ Deprecated / Removed | ✅ Use Instead | Notes |
|---|---|---|
Device.RuntimePlatform | DeviceInfo.Platform | The entire Device class is deprecated |
Device.BeginInvokeOnMainThread() | Dispatcher.Dispatch() | Use the view's or app's Dispatcher property |
Device.InvokeOnMainThreadAsync() | Dispatcher.DispatchAsync() | Same |
Device.OpenUri() | Launcher.OpenAsync() | Use Microsoft.Maui.ApplicationModel.Launcher |
Device.StartTimer() | Dispatcher.StartTimer() or PeriodicTimer | Use the dispatcher or standard .NET timer |
DependencyService | Constructor injection via IServiceProvider | Register services in MauiProgram.cs with builder.Services |
| ❌ Deprecated / Removed | ✅ Use Instead | Notes |
|---|---|---|
FontImageExtension (XAML markup extension) | FontImageSource (type) | Use <FontImageSource> element or property syntax |
Color.FromHex() | Color.FromArgb() | FromHex is obsolete |
| ❌ Deprecated / Removed | ✅ Use Instead | Notes |
|---|---|---|
Page.UseSafeArea (iOS platform-specific) | SafeAreaEdges property | New in .NET 10; ContentPage defaults to None (edge-to-edge) on all platforms |
Layout.IgnoreSafeArea | SafeAreaEdges property | Use the unified safe area API |
| ❌ Deprecated / Removed | ✅ Use Instead | Notes |
|---|---|---|
AutomationProperties.Name | SemanticProperties.Description | AutomationProperties still works but SemanticProperties is the MAUI-native approach |
AutomationProperties.HelpText | SemanticProperties.Hint | Same |
iOS SetAccessibilityHint / SetAccessibilityLabel (Compatibility extensions) | Microsoft.Maui.Platform.UpdateSemantics() | Deprecated in .NET 10 |
| ❌ Deprecated Package | ✅ Use Instead | Notes |
|---|---|---|
Xamarin.Forms | Microsoft.Maui.Controls | Completely different API surface |
Xamarin.Essentials | Built-in MAUI APIs (Microsoft.Maui.Devices, Microsoft.Maui.ApplicationModel, etc.) | Essentials is merged into MAUI |
Xamarin.CommunityToolkit | CommunityToolkit.Maui | Different namespace and API surface |
Microsoft.Toolkit.Mvvm | CommunityToolkit.Mvvm | Package was renamed |
MauiReactor v3+ (for .NET MAUI 9/10):
.csproj via <RuntimeHostConfigurationOption>. Do NOT use the v2 EnableMauiReactorHotReload() call in MauiProgram.cs.ListView), the MauiReactor wrapper is also effectively deprecated. Use the MauiReactor wrapper for the replacement control (e.g., CollectionView).State<T> and Props<T> — not older RxComponent patterns if they appear in outdated examples.Navigation.PushAsync<PageComponent>()) — do NOT mix in MAUI Shell GoToAsync unless deliberately integrating Shell.BlazorWebView — not the legacy WebView — for hosting Razor components.@rendermode directives, [SupplyParameterFromQuery], and the latest component model.IJSRuntime.InvokeAsync<T>() — not the obsolete synchronous IJSInProcessRuntime patterns for mobile.env(safe-area-inset-*) — do NOT combine XAML SafeAreaEdges and CSS safe area padding on the same element (causes double-padding).WebResourceRequested event on BlazorWebView and HybridWebView for intercepting requests.| TFM Pattern | .NET Version |
|---|---|
net10.0-* | .NET 10 (latest, current) |
net9.0-* | .NET 9 |
net8.0-* | .NET 8 (LTS) |
If the .csproj uses <UseMaui>true</UseMaui>, the MAUI version matches the TFM:
net10.0 → MAUI 10net9.0 → MAUI 9Check <PackageReference Include="Reactor.Maui" Version="X.Y.Z" />:
EnableMauiReactorHotReload() builder patternCheck <PackageReference Include="CommunityToolkit.Maui" Version="X.Y.Z" />:
.csproj first. Never generate code without knowing the target framework.Xamarin.* namespaces. They do not exist in MAUI.Compatibility.* types in new projects. They are migration aids only.Device.* API. The Device class is fully deprecated.*Async method names for animations, alerts, and action sheets in .NET 10+.© davidortinau, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in plugins/maui-skills/skills/maui-current-apis of davidortinau/maui-skills.
Open the folder on GitHubat commit 79bb4bf
Maui Current APIs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Maui Current APIs this skilldavidortinau/maui-skills | 175 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Maui Safe Areadotnet/skills | 5.6k | 1 repos | ~3.2k | Automated safety check: Pass | MIT | |
| Wallet QuickstartNethereum/Nethereum | 2.3k | — | ~1.6k | Automated safety check: Pass | MIT | |
| Csharp Expertmicrosoft/testfx | 1k | 2 repos | ~5.4k | Automated safety check: Pass | MIT | |
| Sentry Dotnet SDKgetsentry/sentry-for-ai | 268 | — | ~5.8k | Automated safety check: Pass | Apache-2.0 | |
| Using Dotnetnovotnyllc/dotnet-artisan | 232 | — | ~2.3k | Automated safety check: Warn | MIT |
dotnet/skills
.NET MAUI safe area and edge-to-edge layout guidance for .NET 10+.
Nethereum/Nethereum
Build a multi-platform wallet application using the Nethereum Wallet SDK with MVVM architecture (.NET/C).
microsoft/testfx
Route C and .NET requests to the exact installed specialist or smallest dotnet/skills marketplace plugin.
getsentry/sentry-for-ai
Full Sentry SDK setup for .NET. An agent skill from getsentry/sentry-for-ai.
novotnyllc/dotnet-artisan
Detects .NET intent for any C, ASP.NET Core, EF Core, Blazor, MAUI, Uno Platform, WPF, WinUI, SignalR, gRPC, xUnit, NuGet, or MSBuild request from prompt keywords and repository signals (.sln…
tig/winprint
Build, launch, screenshot, and drive the WinPrint.Maui Windows app (winprint.exe) — including UIA automation of the File button and native Open dialog, and pixel capture that works for WinUI3 content.
davidortinau/maui-skills
Diagnose and troubleshoot .NET MAUI Hot Reload issues (C Hot Reload, XAML Hot Reload, Blazor Hybrid).
davidortinau/maui-skills
Guide for making .NET MAUI apps accessible — screen reader support via SemanticProperties, heading levels, AutomationProperties visibility control, programmatic focus and announcements, and…
davidortinau/maui-skills
.NET MAUI view animations, custom animations, easing functions, rotation, scale, translation, and fade effects.
davidortinau/maui-skills
.NET MAUI app icon configuration, splash screen setup, SVG to PNG conversion at build time, composed/adaptive icons, and platform-specific icon and splash screen requirements for Android, iOS, Mac…
davidortinau/maui-skills
.NET MAUI app lifecycle guidance covering the four app states (not running, running, deactivated, stopped), cross-platform Window lifecycle events, backgrounding and resume behaviour…
davidortinau/maui-skills
Guide for .NET MAUI apps consuming .NET Aspire-hosted backend services.
Categories
Always-on guardrail for .NET MAUI API currency. An agent skill from davidortinau/maui-skills. Maui Current APIs is an agent skill from davidortinau/maui-skills.NET MAUI API currency.
Maui Current APIs fits situations like: : deprecated API; MAUI breaking changes; check API currency; review MAUI code.
Run `npx skills add davidortinau/maui-skills --skill maui-current-apis -a claude-code`. Or copy the skill folder (plugins/maui-skills/skills/maui-current-apis in davidortinau/maui-skills) into .claude/skills/maui-current-apis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add davidortinau/maui-skills --skill maui-current-apis -a codex`. Or copy the skill folder (plugins/maui-skills/skills/maui-current-apis in davidortinau/maui-skills) into .agents/skills/maui-current-apis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davidortinau/maui-skills --skill maui-current-apis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/maui-current-apis, .gemini/skills/maui-current-apis, .github/skills/maui-current-apis and .opencode/skills/maui-current-apis in your project.
SKILL.md names no scripts, command-line tools or credentials: Maui Current APIs is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Maui Current APIs is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Maui Current APIs: Maui Safe Area (dotnet/skills, 5.6k stars), Wallet Quickstart (Nethereum/Nethereum, 2.3k stars), Csharp Expert (microsoft/testfx, 1k stars) and Sentry Dotnet SDK (getsentry/sentry-for-ai, 268 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
davidortinau (a GitHub user) maintains it in davidortinau/maui-skills, which has 175 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on July 6, 2026.
Source: davidortinau/maui-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.