Search code examples
uwpcontrolsuwp-xamlwinui

What control is used in the settings app and can I use it in my UWP app?


What are those controls on the right side of the Windows settings app?

The closest control I could find in the XAML Controls Gallery app are Expanders, but they do not seem to offer the same functionality (expanding either up and down, no way to specify a title (such as "Printers & scanners") and a subtitle (such as "Preferences, troubleshoot") in addition to content (such as the "Add device" button in the screenshot).

How can I achieve a similar look and behavior in my UWP app with WinUI 2.7?

enter image description here


Solution

  • As far as I know, microsoft has no public control for this, but they created there own, which you can find for example in the source code of Powertoys.

    https://github.com/microsoft/PowerToys/tree/main/src/settings-ui/Settings.UI/Controls/Setting