Build great Windows apps with a modern, unified approach.
The Universal Windows Platform (UWP) is a software platform that allows developers to build applications that run on any Windows device. This includes Windows 10 PCs, Xbox, HoloLens, and other Windows devices. UWP apps are packaged, distributed, and monetized through the Microsoft Store, providing a consistent experience for users across a wide range of hardware.
UWP provides a unified API that allows you to write your app code once and deploy it across all Windows 10 and Windows 11 devices. This means less time spent on porting and more time focusing on delivering value to your users.
With UWP, you can leverage a rich set of platform capabilities, including:
The core principle of UWP is "write once, run everywhere" across the Windows ecosystem. Your app can scale seamlessly from a small mobile screen to a large desktop monitor or even a HoloLens.
Develop UWP applications using familiar languages like C#, C++, JavaScript, and Visual Basic. Utilize powerful IDEs such as Visual Studio with rich debugging, profiling, and design tools.
Example using C# and XAML:
<Page
x:Class="MyFirstUwpApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyFirstUwpApp"
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 World!"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="32"/>
</Grid>
</Page>
UWP apps are built with XAML, a declarative markup language for creating user interfaces. This allows for sophisticated layouts, animations, and data binding, leading to engaging and responsive applications.
UWP apps run in a sandboxed environment, which enhances security and privacy by default. This means apps have limited access to system resources and user data, requiring explicit permissions.
To begin developing UWP applications, you'll need the following:
Once set up, you can create a new UWP project in Visual Studio and start building your first app. Explore templates for various app types to accelerate your development.
Refer to the official documentation for detailed setup instructions and best practices.
Download Visual Studio Explore UWP TemplatesNow that you have a foundational understanding of UWP, here are some recommended next steps:
The Windows platform is constantly evolving, and UWP offers a robust foundation for building the next generation of Windows applications.
Explore UWP Tutorials Discover Windows APIs