Skip to content
master
Switch branches/tags
Code

Latest commit

* Refactor sample code presenter into own control

* Add copy sample code button

* Add tooltip to copy sample code button

* Changed text to "Copied!"

* Revert sln version change, fix issue were text was not centered

Co-authored-by: Greg Woo <90726278+gregwoo-microsoft@users.noreply.github.com>
f3a282a

Git stats

Files

Permalink
Failed to load latest commit information.
page_type languages products statusNotificationTargets description
sample
csharp
xaml
windows
windows-uwp
controlsgallery@microsoft.com
Demonstrates the usage of all XAML/WinUI controls in an interactive format.

XAML Controls Gallery

Xaml Gallery Screenshot

Build Status

Shows all of the XAML controls in an interactive format. This app is the interactive companion to the Fluent Design Guidelines and shows the usage of both UWP Xaml APIs and Windows UI Library APIs.

The XAML Controls Gallery shows how to:

  • Specify XAML controls in markup: Each control page shows the markup used to create each example.

  • Use the Microsoft.UI.Xaml (WinUI) Library: The app includes the latest WinUI NuGet package and shows how to use the Windows UI Library controls like NavigationView, SwipeControl, and more.

  • Basic layout: This sample will show all of the possible layout options for your app and allow you to interact with the panels to show how to achieve any layout you are looking for.

  • Adaptive UI: In addition to showing how each control responds to different form factors, the app itself is responsive and shows various methods for achieving adaptive UI.

  • Version adaptive code: This sample shows how to write version adaptive code so that the app can run on previous versions of Windows while also using the latest capabilities on the most recent verison of Windows.

Further information

Note: The Xaml Controls Gallery requires Visual Studio 2017 or 2019 to build and Windows 10 to execute.

To obtain information about Windows 10 development, go to the Windows Dev Center

To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to Visual Studio

🐞 Found a bug? Want a new sample?

If you find a bug within the Xaml Controls Gallery or want to request a new sample, please file an issue.

If you find a bug within your app (not in the Xaml Controls Gallery) and need help, please file an issue on the WinUI repo.

Related topics

Get started with Windows 10 apps

Install a prebuilt version of this app from Microsoft Store. Each control page in the application has links to relevant Microsoft Docs for that control.

Windows UI Library (WinUI)

Related samples

RSS reader sample
Lunch Scheduler app sample
Customers Orders Database sample
Universal Windows Platform (UWP) Samples