WinUI 3 Docs

Overview

WinUI 3 is the latest native UI platform for Windows desktop apps. It provides modern controls, fluent design, and deep integration with Windows 10/11.

Key Features

Installation

Install the WinUI 3 templates and NuGet packages using Visual Studio.

dotnet new winui3 -n MyApp
dotnet add package Microsoft.WinUI
dotnet restore

Hello World

Create a simple window with a button.

<Window
    x:Class="MyApp.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
        <TextBlock Text="Hello, WinUI 3!" FontSize="24"/>
        <Button Content="Click Me" Click="OnClick"/>
    </StackPanel>
</Window>

Resources