This commit is contained in:
Kristen Schau
2024-09-20 10:33:16 -04:00
parent 53b584049c
commit b99f530cc5
7 changed files with 7 additions and 8 deletions

View File

@@ -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()

View File

@@ -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
{

View File

@@ -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
{

View File

@@ -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;

View File

@@ -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();

View File

@@ -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"

View File

@@ -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;