Welcome to WinUI Documentation

This is the official documentation portal for Windows UI (WinUI), Microsoft's native platform for building modern, beautiful, and performant Windows applications.

WinUI is the latest evolution of Windows UI development. It provides a native look and feel, leveraging the power and flexibility of C# and C++ development with native performance.

Key Concepts

  • Native Development: Build applications using C# or C++ with direct access to Windows APIs.
  • Fluent Design: Embrace Microsoft's Fluent Design System for visually appealing and intuitive user interfaces.
  • Modern Controls: Utilize a rich set of modern UI controls designed for today's Windows user experiences.
  • Performance: Optimize your applications for speed and responsiveness.
  • Cross-Platform Potential: While primarily for Windows, WinUI's architecture offers avenues for future cross-platform expansion.

Getting Started

To begin your WinUI development journey, we recommend the following resources:

Latest Updates

Stay informed about the latest features, improvements, and announcements related to WinUI. Check out the latest releases page.

Example: A Simple Button

Here's a glimpse of how to use a basic button control in WinUI.

XAML Code:

<Button Content="Click Me!" Clicked="{x:Bind Button_Clicked}" />

C# Code-Behind:

private void Button_Clicked(object sender, RoutedEventArgs e)
{
    // Handle button click event
    System.Diagnostics.Debug.WriteLine("Button was clicked!");
}

This snippet demonstrates a simple button with text and an event handler for the click action.

<Grid>
    <Button Content="Learn More" HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>
// This code-behind would handle events or data binding for the XAML above.
// For this simple example, no specific C# logic is required for just displaying the button.