Avalonia XPF is the commercial solution that enables WPF applications to run natively on macOS, Linux, iOS, Android and the Web with minimal code changes. This repository contains sample applications demonstrating how to use Avalonia XPF to extend your WPF applications to additional platforms.
Key features demonstrated in these samples include:
- Running WPF applications on macOS and Linux with little to no code modification
- Platform-specific considerations and best practices
- Integration patterns for common WPF frameworks and libraries
- Migration strategies and compatibility solutions
Avalonia XPF is a commercial product licensed per-app. For more information about licensing and to get started with Avalonia XPF, visit the Avalonia XPF web page.
- The samples all use a centralized management of the license key, meaning you can set your license key just once!
- You will need to have an active trial of Avalonia XPF for these samples to work.
Mix-and-match WPF and Avalonia in a single project.
This sample demonstrates how you can add WPF controls to your existing Avalonia application. Read the docs.
- The Avalonia version must match! As of
1.4.0-cibuild001849
you should use11.2.999-cibuild0052170-alpha
.
We have iOS, Android and WebAssembly support in preview with select customers. To enable these platforms, we recommend creating a Single Project, which contains Desktop, Mobile and Web versions of your WPF applications. The sample app demonstrates this apporach.