Skip to main content
net11.0net11.0-browser1.0

Avalonia.Controls.Maui.Essentials provides an implementation of Microsoft.Maui.Essentials, using Avalonia-based implementations.

Published
Jun 10, 2026
4mo ago
Total Downloads
3.0K
3,001

Install

dotnet add package Avalonia.Controls.Maui.Essentials --version 11.0.0-preview.5.26161.128
ProductVersions
.NET
net11.0net11.0-browser1.0

README

Avalonia.Controls.Maui.Essentials

Avalonia.Controls.Maui.Essentials provides Avalonia-based implementations of Microsoft.Maui.Essentials APIs. Internally, it generally uses Avalonia APIs for accessing services, unless they don't exist or are specific to platforms where that would not be applicable.

Setup

Call UseAvaloniaEssentials() on your MauiAppBuilder:

var builder = MauiApp.CreateBuilder();
builder
    .UseMauiApp<App>()
    .UseAvaloniaApp()
    .UseAvaloniaEssentials();

Implemented APIs

API Namespace Status Notes
Screenshot Microsoft.Maui.Media Implemented Full support. Note: Always outputs PNG regardless of requested format.
FilePicker Microsoft.Maui.Storage Implemented Full support for single and multi-file selection. MIME types and UTIs are converted to glob patterns where possible.
MediaPicker Microsoft.Maui.Media Partial Photo and video picking is supported. Camera capture (CapturePhotoAsync/CaptureVideoAsync) throws NotSupportedException.
FileSystem Microsoft.Maui.Storage Implemented CacheDirectory, AppDataDirectory, and app package file access via Avalonia's avares:// asset loader.
HapticFeedback Microsoft.Maui.Devices Stub IsSupported returns false. Perform() is a no-op. Haptic feedback is not available on desktop platforms.
Preferences Microsoft.Maui.Storage Implemented Full support for all types (string, int, bool, long, double, float, DateTime, DateTimeOffset). Persists to a JSON file. Supports shared containers.

Not Implemented APIs

For APIs that have not been implemented in Microsoft.Maui.Essentials APIs, they will fall back to the default .NET MAUI standard implementations. These will most likely throw NotImplementedException as most of them are platform specific implementations. We are adding more support for the areas we can cover.

Changes from Previous Version

No structural changes between v11.0.0-preview.4.26133.721 and v11.0.0-preview.5.26161.128.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.