mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-04 20:21:18 +08:00
1.4 KiB
1.4 KiB
UI Architecture
The UI code is distributed between two projects: Microsoft.PowerToys.Settings.UI.Runner
and Microsoft.PowerToys.Settings.UI
. Microsoft.PowerToys.Settings.UI.Runner
is a WPF .net core application. It contains the parent display window and corresponding code is present in MainWindow.xaml.
Microsoft.PowerToys.Settings.UI
is UWP applications and contains views for base navigation and modules. Fig 1 provides a description of the UI controls hierarchy and each of the controls have been summarized below :
MainWindow.xaml
is the parent WPF control.WindowsXamlHost
control is used to host UWP control toMainWindow.xaml
parent control.ShellPage.xaml
is a UWP control, consisting of a side navigation panel with an icon for each module. Clicking on a module icon loads the correspondingsetting.json
file and displays the data in the UI.