page_type | languages | products | name | urlFragment | description | extendedZipContent | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
Windowing gallery sample |
windowing |
Shows how to use the Windows App SDK windowing APIs |
|
These samples demonstrate how to use the AppWindow class to manage your application's window.
Please note that customization of a window's TitleBar using the AppWindowTitleBar APIs is only supported on Windows 11 or later. This is illustrated in the sample by using the (IsCustomizationSupported)[https://docs.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.windowing.appwindowtitlebar.iscustomizationsupported] method. Please see the Title bar customization article for more details.
- See System requirements for Windows app development.
- Make sure that your development environment is set up correctly—see Install tools for developing apps for Windows 10 and Windows 11.
- For the unpackaged sample apps, make sure to also install the prerequisites for deploying unpackaged apps.
- The C# samples require either .NET SDK 5.0.205 or later, or .NET SDK 5.0.400 or later.
- Open the solution file (
.sln
) from the subfolder of your preferred sample in Visual Studio. - From Visual Studio, either Start Without Debugging (Ctrl+F5) or Start Debugging (F5).