mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-01-12 07:16:44 +01:00
nits
This commit is contained in:
@@ -16,7 +16,8 @@ public partial class MainListPage : DynamicListPage
|
||||
{
|
||||
private readonly ISection[] _sections;
|
||||
|
||||
// TODO: Thinking we may want a separate MainViewModel from the ShellViewModel and/or a CommandService/Provider which holds the TopLevelCommands and anything that needs to access those functions...
|
||||
// TODO: Thinking we may want a separate MainViewModel from the ShellViewModel and/or a CommandService/Provider
|
||||
// which holds the TopLevelCommands and anything that needs to access those functions...
|
||||
public MainListPage(ShellViewModel shellViewModel)
|
||||
{
|
||||
_sections = [new MainListSection()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
namespace Microsoft.CmdPal.UI.ViewModels.Messages;
|
||||
|
||||
/// <summary>
|
||||
/// Used to navigate to the next command in the page when pressing the Down key in the Searchbox.
|
||||
/// Used to navigate to the next command in the page when pressing the Down key in the SearchBox.
|
||||
/// </summary>
|
||||
public record NavigateNextCommand
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
namespace Microsoft.CmdPal.UI.ViewModels.Messages;
|
||||
|
||||
/// <summary>
|
||||
/// Used to navigate to the next command in the page when pressing the Down key in the Searchbox.
|
||||
/// Used to navigate to the previous command in the page when pressing the Down key in the SearchBox.
|
||||
/// </summary>
|
||||
public record NavigatePreviousCommand
|
||||
{
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Diagnostics;
|
||||
using CommunityToolkit.Mvvm.Collections;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
@@ -45,7 +45,7 @@ public partial class App : Application
|
||||
/// Invoked when the application is launched.
|
||||
/// </summary>
|
||||
/// <param name="args">Details about the launch request and process.</param>
|
||||
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
|
||||
protected override void OnLaunched(LaunchActivatedEventArgs args)
|
||||
{
|
||||
_window = new MainWindow();
|
||||
_window.Activate();
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
|
||||
<Grid>
|
||||
<!-- not using Interactivity:Interaction.Behaviors due to wanting to do AoT -->
|
||||
<!-- sticking with ListView as ItemsView doesn't have grouping built-in, could investigate coordinating keyboards between them and using ItemsRepeater for group headers, though that wouldn't use CVS either -->
|
||||
<!-- sticking with ListView as ItemsView doesn't have grouping built-in, could investigate coordinating
|
||||
keyboards between them and using ItemsRepeater for group headers, though that wouldn't use CVS either -->
|
||||
<ListView
|
||||
x:Name="ItemsList"
|
||||
IsItemClickEnabled="True"
|
||||
|
||||
@@ -6,7 +6,6 @@ using CommunityToolkit.Mvvm.Messaging;
|
||||
using Microsoft.CmdPal.UI.ViewModels;
|
||||
using Microsoft.CmdPal.UI.ViewModels.Messages;
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
using Microsoft.UI.Xaml.Input;
|
||||
using Microsoft.UI.Xaml.Navigation;
|
||||
|
||||
namespace Microsoft.CmdPal.UI;
|
||||
|
||||
Reference in New Issue
Block a user