mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
Replaced the custom RelayCommand implementation with the [RelayCommand] attribute from the CommunityToolkit.Mvvm library to simplify command creation and reduce boilerplate code. - Removed RelayCommand and RelayCommand<T> classes. - Added CommunityToolkit.Mvvm package to the project. - Updated MainViewModel and MonitorViewModel to use [RelayCommand] for command generation. - Cleaned up unused imports related to the removed RelayCommand. This change improves maintainability and aligns the project with modern MVVM practices.
PowerToys Source Code
Code organization
The PowerToys are split into DLLs for each PowerToy module (modules folder), and an executable (runner folder) that loads and manages those DLLs.
The settings window is a separate executable, contained in settings-ui folder. It utilizes a WebView to display an HTML-based settings window.
The common contains code for a static library with helper functions, used by both the runner and the PowerToys modules.