SamplePagesCommandsProvider.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using Microsoft.CommandPalette.Extensions; 6 using Microsoft.CommandPalette.Extensions.Toolkit; 7 8 namespace SamplePagesExtension; 9 10 public partial class SamplePagesCommandsProvider : CommandProvider 11 { 12 public SamplePagesCommandsProvider() 13 { 14 DisplayName = "Sample Pages Commands"; 15 Icon = new IconInfo("\uE82D"); 16 } 17 18 private readonly ICommandItem[] _commands = [ 19 new CommandItem(new SamplesListPage()) 20 { 21 Title = "Sample Pages", 22 Subtitle = "View example commands", 23 }, 24 ]; 25 26 public override ICommandItem[] TopLevelCommands() 27 { 28 return _commands; 29 } 30 }