WinUI 3 C++ Controls Guide – InfoBar Message Bar
An info bar is a colored text box control. It displays different color styles to indicate success, warning, error and other types of messages. The info bar can be closed …
Independent Software Developer Studio
WinUI 3 with C++ is Microsoft’s native high-performance XAML UI framework for building modern standalone Windows desktop applications using standard C++17.
An info bar is a colored text box control. It displays different color styles to indicate success, warning, error and other types of messages. The info bar can be closed …
First we demonstrate Popup In XAML, add a button to open this Popup on click. We also declare a Popup hidden by default, which will only appear after clicking the …
Navigation and tab-related controls in WinUI 3 Frame Page navigation frame (hosts Page to implement page jumps)Page Independent page carrierNavigationView Sidebar navigation viewNavigationViewItem Navigation menu itemNavigationViewItemHeader Navigation group titleNavigationViewItemSeparator Navigation …
Grid Grid layout (row & column division)StackPanel Stack panel (horizontal / vertical arrangement)UniformGrid Equal-size uniform gridRelativePanel Relative positioning panel (anchor controls to each other)Canvas Absolute coordinate drawing canvasDockPanel Dock panel …
Date selection and color selection controls ColorPicker Full color pickerColorSpectrum Color gamut panelColorSlider Single channel slider (RGB/Alpha) ColorPicker Full color pickerColorSpectrum Color gamut panelColorSlider Single channel slider (RGB/Alpha) First create …
Progress bars are widely used in projects. WinUI C++ provides several progress bar controls for us to use. Control Name Description Slider Single-value slider RangeSlider Dual thumb range slider (select …
Next we will introduce several view controls used to display multiple items. They are commonly used to render batches of data, presenting a vertical list, grid or table layout. Control …
Now we will implement a frequently used function: dynamically add items to a ListBox. Click the button to insert a new item into the ListBox’s Items collection. This feature is …
In this lesson, we will learn selection and toggle controls for WinUI 3 C++. Control Name Description CheckBox Multi-select checkbox RadioButton Single-choice radio button (mutually exclusive within the same GroupName) …
We have already used button controls in previous lessons, and the most basic one is Button. Next, we will learn other types of button controls. Buttons are interactive UI elements …
In this lesson, we will start learning controls for WinUI 3 C++. WinUI C++ comes with an extensive library of built-in controls, and we will begin with fundamental text input …
Developers with prior WPF experience will be familiar with the Grid control; its behavior in WinUI is largely identical to WPF. In this lesson, we will create a 3×3 numeric …
In the previous lesson, we finished implementing the left sidebar with a Frame control inside. When the main window launches, this Frame loads a default blank page automatically. However, clicking …
The interface after running the app is shown below
In the previous lesson, we added a button in XAML and generated an event. Our first implementation was changing the button’s text upon clicking the button. First go back to …
After readers upgrade VS 2022 to version 17.9.1 or newer, newly created WinUI 3 C++ projects come with a default sample containing a button. Clicking the button triggers backend logic …
In the last lesson, we finished setting up WinUI C++ and created our first working app. Today, we’ll break down every part of this starter WinUI C++ project step by step.
This tutorial uses Visual Studio 2022 for development. You can also use the latest Visual Studio 2026 if you have access to it. We’re using the Community edition, which can be downloaded from the link below: