Understanding Your First Avalonia App — Entry Point to MainWindow

Understand every file in a new Avalonia project before you write a single line of your own code. This is the companion video to the official Avalonia 12 New Project documentation. We open a fresh Avalonia project in Rider and walk through exactly what the generated boilerplate is doing — Program.cs as the application entry point, platform detection, the Skia rendering engine, Avalonia Developer Tools, App.xaml and its code-behind for theming, and MainWindow.xaml where your UI work begins. By the end you'll know why every file exists and what you can safely change. 📖 Full written guide → https://docs.avaloniaui.net/docs/get-... ━━━━━━━━━━━━━━━━━━━━━━━━━━━ ⏱ CHAPTERS ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0:00 Introduction & prerequisites 0:10 Creating a new Avalonia project in Rider 0:44 Walking through Program.cs 1:53 Platform detection & the Skia rendering engine 2:39 Avalonia Developer Tools explained 3:40 Logging and other boilerplate 4:27 Exploring App.xaml and its code-behind 4:50 Changing the application theme (Default / Dark / Light) 5:10 Styles, resources, and the Fluent theme 6:28 Application initialization and main window setup 7:32 MainWindow.xaml deep dive 8:12 How content is embedded in XAML 9:07 Swapping content live — string to button and back 9:38 What's next ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔗 RESOURCES ━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📄 Official Docs → https://docs.avaloniaui.net 🐙 GitHub → https://github.com/AvaloniaUI/Avalonia 💬 Community → https://t.me/Avalonia 🐦 X/Twitter → https://x.com/AvaloniaUI ━━━━━━━━━━━━━━━━━━━━━━━━━━━ #AvaloniaUI #dotnet #XAML