MSDN Community

Universal Windows Platform (UWP) Development

Introduction to UWP

The Universal Windows Platform (UWP) allows developers to build applications that run across all Windows 10 and Windows 11 devices, from desktops and laptops to tablets, Xbox, HoloLens, and more. This unified approach simplifies development and ensures a consistent user experience across the Windows ecosystem.

UWP applications are built using modern technologies and frameworks, offering a rich set of APIs for accessing device capabilities, creating engaging user interfaces, and integrating with Windows features.

Key Concepts and Technologies

Getting Started with UWP

To start building UWP applications, you'll need:

  1. Visual Studio: Download and install Visual Studio with the "Universal Windows Platform development" workload.
  2. Windows SDK: This is typically installed with Visual Studio.
  3. Create a New Project: In Visual Studio, create a new UWP project (e.g., "Blank App (Universal Windows)").

Here's a basic XAML structure for a UWP page:

<Page
    x:Class="MyUwpApp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:MyUwpApp"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid>
        <TextBlock Text="Hello, UWP!"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Style="{ThemeResource SubheaderTextBlockStyle}"/>
    </Grid>
</Page>

Community Resources

Connect with other UWP developers, find solutions, and share your knowledge: