Windows.UI (UWP)

Introduction

The Windows.UI namespace provides classes for building modern, responsive user interfaces in Universal Windows Platform (UWP) apps. It includes controls, layouts, theming support, and animation utilities.

Getting Started

Add the following XAML namespace to your page to use Windows.UI controls:

<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ui="using:Windows.UI.Xaml">
    ...
</Page>

Sample: Simple Dialog

Use ContentDialog to display modal dialogs.

var dialog = new ContentDialog
{
    Title = "Hello, UWP!",
    Content = "This is a simple dialog using Windows.UI.",
    CloseButtonText = "Close"
};
await dialog.ShowAsync();

Resources