PowerToys/doc/devdocs/settingsv2/project-overview.md

1.2 KiB

Overview

Settingsv2 is WPF .net core desktop application. It uses the WindowsXamlHost control from the Windows Community Toolkit to host UWP controls from WinUI3 library. More details about WinUI can be found here.

Settings V2 Project structure

The Settings project is a XAML island based project which follows the MVVM architectural pattern where the graphical user interface is separated from the view models.

UI Components:

The Settings.UI project contains the xaml files for each of the UI components. It also contains the Hotkey logic for the settings control.

Viewmodels:

The Settings.UI.Library project contains the data that is to be rendered by the UI components.

Settings Runner:

The function of the settings runner project is to communicate all changes that the user makes in the user interface, to the runner so that it can be dispatched and reflected in all the modules.