await Launcher.LaunchUriAsync(new Uri("ms-settings:")); ; grid.Children.Add(button); Content = grid; SetWindowSize(140, 60);
var grid = new Grid(); var button = new Button open settings shortcut windows 11
To use these, simply create a new Desktop Shortcut (Method 2) and use the specific command listed above instead of the generic ms-settings: command. await Launcher
If you want the Settings app to live in your Taskbar for one-click access: await Launcher.LaunchUriAsync(new Uri("ms-settings:"))