What would a cross-platform .NET UI Framework look like?

Many years ago before WPF was the “Windows Presentation Foundation” and introduced XAML as a UI markup language for .NET, Windows, and more, there was a project codenamed “Avalon.” Avalon was WPF’s codename. XAML is everywhere now, and theXAML Standardis a vocabulary specification.

Avaloniais an open source project that clearly takes its inspiration from Avalon and has an unapologetic love for XAML.Steven Kirk(GitHubber by day) anda team of nearly 50 contributorsare asking what would a cross-platform .NET UI Framework look like. WPF without the W, if you will.

Avalonia(formerly known as Perspex) is a multi-platform .NET UI framework. It can run on Windows, Linux, Mac OS X, iOS and Android.

YOU can try out the latest build of Avalonia available for download here:https://ci.appveyor.com/project/AvaloniaUI/Avalonia/branch/master/artifactsand probably get the “ControlCatalog.Desktop” zip file at the bottom. It includes a complete running sample app that will let you explore the available controls.

It’s important note that while Avalonia may smell like WPF, it’s not WPF. It’s not cross-platform WPF - it’sAvalonia. Make sense?Avalonia does styles differently than WPF, and actually has alot of subtle but significant syntax improvements.

Avalonia is a multi-platform windowing toolkit - somewhat like WPF - that is intended to be multi- platform. It supports XAML, lookless controls and a flexible styling system, and runs on Windows using Direct2D and other operating systems using Gtk & Cairo.

It’s in an alpha state but there’s an active community excited about itand there’s even a Visual Studio Extension (VSIX)to help you get File | New Project support and create an app fast. You can check out the source for the sample apps herehttps://github.com/AvaloniaUI/Avalonia/tree/master/samples.

Just in the last few weeks you can see commitsas they explore what a Linux-based .NET Core UI app would look like.

You can get an idea of what can be done with a framework like this by taking a look at how someone forked theMSBuildStructuredLog utilityand ported it to Avalonia - making it cross-platform -in just hours. You can see avideo of the port in action on Twitter. There is also a cross-platform REST client you can use to call your HTTP Web APIs athttps://github.com/x2bool/restofuswritten with Avalonia.

The project is active but also short on documentation. I’m SURE that they’d love to hear from you on Twitter or in the issues on GitHub. Perhaps you could start contributing to open source and help Avalonia out!

What do you think?

Sponsor: Get thelatest JetBrains Rider previewfor .NET Core 2.0 support, Value Tracking and Call Tracking, MSTest runner, new code inspections and refactorings, and the Parallel Stacks view in debugger.

Source: https://www.hanselman.com/blog/WhatWouldACrossplatformNETUIFrameworkLookLikeExploringAvalonia.aspx