RouteNav.Avalonia 2.0.0.7

dotnet add package RouteNav.Avalonia --version 2.0.0.7
                    
NuGet\Install-Package RouteNav.Avalonia -Version 2.0.0.7
                    
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="RouteNav.Avalonia" Version="2.0.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RouteNav.Avalonia" Version="2.0.0.7" />
                    
Directory.Packages.props
<PackageReference Include="RouteNav.Avalonia" />
                    
Project file
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 RouteNav.Avalonia --version 2.0.0.7
                    
#r "nuget: RouteNav.Avalonia, 2.0.0.7"
                    
#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 RouteNav.Avalonia@2.0.0.7
                    
#: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=RouteNav.Avalonia&version=2.0.0.7
                    
Install as a Cake Addin
#tool nuget:?package=RouteNav.Avalonia&version=2.0.0.7
                    
Install as a Cake Tool

RouteNav.Avalonia

RouteNav.Avalonia provides URI-based navigation for Avalonia. It supports a code-first, modular/extensible navigation model built around page, dialog and stack primitives.

Features

  • Central URI navigation via Navigation.PushAsync(uri, target) and route-aware controls.
  • Four navigation layouts: single page, navigation stack with back button, tabs, and sidebar/drawer navigation built on Avalonia 12's native DrawerPage.
  • Dialogs and overlays: show pages as dialogs, use built-in message dialogs, and display user-facing error pages or dialogs.
  • Cross-stack navigation targets: route to Self, Parent, Dialog, DialogOverlay or Window.
  • Dependency-injection friendly page registration, with custom page factories and route resolvers when routes are dynamic.
  • Desktop, mobile and browser support through one RouteNav Window abstraction, including multi-window desktop and single-view mobile/browser behavior.
  • Routing controls: RouteButton, RouteMenuItem, RouteCommand, HyperlinkButton and HyperlinkLabel.

Quick start

Register pages during application startup:

Navigation.UIPlatform.RegisterPage<RootPage, Page1>();

Create a stack and map routes to pages:

var stack = new NavigationPageStack("main", "Main");
stack.AddPage<RootPage>(String.Empty);
stack.AddPage<Page1>("page1");

Navigate by route:

await Navigation.PushAsync("/main/page1");

Requirements

  • Avalonia 12
  • .NET 10

RouteNav's navigation controls use Avalonia 12 primitives and resource keys where practical, so standard Fluent theming still applies. The sidebar/drawer layout composes Avalonia's native DrawerPage, and NavigationControl uses Avalonia 12's shared navigation-bar resource keys.

Installation

dotnet add package RouteNav.Avalonia

Documentation

Full documentation, migration notes and the demo app are available on GitHub: https://github.com/profix898/RouteNav.Avalonia/blob/main/Docs/README.md

Licensed under the MIT license.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0.7 44 7/7/2026
1.1.0.216 368 8/5/2025
1.0.50 259 9/19/2024
0.9.396 333 12/24/2023
0.9.390 261 12/22/2023
0.9.385 272 12/21/2023
0.9.289 241 9/15/2023
0.9.287 251 9/14/2023
0.9.286 260 9/13/2023
0.8.263 270 9/12/2023
0.8.250 247 9/8/2023
0.8.244 300 9/1/2023