No description
Find a file
Marcel van der Heide 6938ebe6df
All checks were successful
Build ViewHelper / build (pull_request) Successful in 1m47s
Build ViewHelper / build (push) Successful in 1m41s
feat: allow rethrowing exceptions in TaskExecutor to allow external global handlers
2025-12-31 12:39:26 +01:00
.forgejo/workflows
Demo chore: make OnAppearing and OnDisappearing non-async + cleanup 2025-12-29 21:57:10 +01:00
ViewHelper feat: allow rethrowing exceptions in TaskExecutor to allow external global handlers 2025-12-31 12:39:26 +01:00
ViewHelper.Avalonia chore: make OnAppearing and OnDisappearing non-async + cleanup 2025-12-29 21:57:10 +01:00
.gitignore
LICENSE
README.md
renovate.json
ViewHelper.sln
ViewHelper.sln.DotSettings

ViewHelper

This library provides simple implementations for view locating and animated navigation within AvaloniaUI applications.

Features

ViewLocator

// Create the ViewLocator - a service locator may be passed optionally
var locator = new AvaloniaViewLocator();

// Resolve view
var view = locator.ResolveView<MainView, MainViewModel>()

Navigation

// Usage within another ViewModel:

// Push the resolved view 
Navigation.PushAsync(view)

Available methods

  • PushAsync
  • PopAsync
  • PopToRootAsync
  • SetRootAsync

Initialization

Ensure that .UseViewHelper() is invoked as part of your AppBuilder initialization to activate the librarys functionality.

public static AppBuilder BuildAvaloniaApp()
    => AppBuilder.Configure<App>()
        .UsePlatformDetect()
        .UseViewHelper() // <- Add this line
        .WithInterFont()
        .LogToTrace();

License

MIT