AdaptiveShell.Maui
0.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AdaptiveShell.Maui --version 0.1.0
NuGet\Install-Package AdaptiveShell.Maui -Version 0.1.0
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="AdaptiveShell.Maui" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AdaptiveShell.Maui" Version="0.1.0" />
<PackageReference Include="AdaptiveShell.Maui" />
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 AdaptiveShell.Maui --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AdaptiveShell.Maui, 0.1.0"
#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 AdaptiveShell.Maui@0.1.0
#: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=AdaptiveShell.Maui&version=0.1.0
#tool nuget:?package=AdaptiveShell.Maui&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AdaptiveShell.Maui
Adaptive shell navigation for .NET MAUI. The navigation chrome adapts to the platform and window size — sidebar on large screens, navigation rail on medium screens, bottom navigation on small screens — with support for navigation groups, per-page icons and accent colors.
Platforms
- Android
- iOS
- Mac Catalyst
Install
dotnet add package AdaptiveShell.Maui
Usage
Register the handlers in MauiProgram.cs:
using AdaptiveShell.Hosting;
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseAdaptiveShell();
Derive your app shell from AShell and declare navigation items in XAML:
<a:AShell
x:Class="MyApp.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:a="clr-namespace:AdaptiveShell.Controls;assembly=AdaptiveShell"
Title="MyApp">
<a:AShellContent
Title="Home"
Icon="home.svg"
ContentTemplate="{DataTemplate local:MainPage}" />
<a:AShellGroup Title="Media" Icon="folder.svg">
<a:AShellContent
Title="Music"
Icon="star.svg"
ContentTemplate="{DataTemplate local:MusicPage}" />
<a:AShellContent
Title="Photos"
Icon="star.svg"
ContentTemplate="{DataTemplate local:PhotosPage}" />
</a:AShellGroup>
</a:AShell>
AShellContent— a top-level navigation item hosting a page.AShellGroup— groups several items behind one entry (flyout/drawer).FullBleed— lets page content extend under the floating navigation bar; drive it withAdaptiveTriggervisual states to react to window size.
See Example/ExampleAShellApp for a full sample.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. net10.0-ios26.5 is compatible. net10.0-maccatalyst26.5 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.100)
- Xamarin.Google.Android.Material (>= 1.14.0.6)
-
net10.0-ios26.5
- Microsoft.Maui.Controls (>= 10.0.100)
-
net10.0-maccatalyst26.5
- Microsoft.Maui.Controls (>= 10.0.100)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.