Avalonia UI
Video : https://www.youtube.com/watch?v=THKjD-ZwGPk
- 10 年了
- 支援的作業系統
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- Windows, MacOS, Linux, iOS, Android, WASM
- 預計要支援: Vision OS, Tizen, WebOS
- ResperriPi 也可以跑
- Open Source: https://github.com/AvaloniaUI/Avalonia
- Jetbrains 的 Rider 是 Avalonia 做的
- 有些人把 Qt 轉換到 Rider (Embedded device dev)
架構
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- Rendering
- UI 的東西都是自己 render 的 => 不是用原生的控制項,跟 Uno 一樣但跟 MAUI 不一樣
- 這樣才能做到 Pixel perfect
- Rendering engine
- .NET MAUI 則是 Wrapper 一層包裝原生控制項
- 跟 .NET MAUI 的 runtime 的稍為不同,在 Mac OS 上不一樣
- Avalonia: .NET Core CLR
- .NET MAUI: mono
- 執行速度快 (影片有 demo)
Total control
- UI 可以控制得很多,已經有包含 Theme system
Dev Experience
- 用 XAML (不過不完全相容於 WPF, UWP 網站有介紹)
- 跟 Rider 整合得很好
- AvaloniaRider 的外掛可以 prview xaml
- 也有 VS 的 extension
- 有內建許多的 project template
- Avalonia .NET MVVM app
- Avalonia .NET app
- Avalonia Corss Platform Application
- 包含 brower, mobile platofmr
MAUI Hybrid
- 可以跟互相使用 (MAUI app 使用 Avalonia control, Avalonia App 使用 MAUI control)
Avalonia XPF
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- Cross-Platform WPF
- Suports Windows, macOS & Linux
- iOS, Android, and Brower coming 2024
- 是需要付費使用的
- Hybrid XPF
- Use WPF controls in Avalonia Apps
Reference