this didn't work and no one knows why

This commit is contained in:
Mike Griese
2025-08-06 06:08:01 -05:00
parent fed6e523b6
commit 2990aad9fd
3 changed files with 36 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
using Microsoft.CommandPalette.Extensions;
using Microsoft.CommandPalette.Extensions.Toolkit;
using Windows.Foundation.Collections;
using Windows.System;
using Windows.Win32;
@@ -169,6 +170,22 @@ internal sealed partial class SampleListPage : ListPage
{
Title = "Get the name of the Foreground window",
},
new ListItem(new CommandWithProperties())
{
Title = "I have properties",
},
];
}
internal sealed partial class CommandWithProperties : InvokableCommand, ICommand2
{
public override string Name => "Whatever";
public IPropertySet OtherProperties => new PropertySet()
{
{ "Foo", "bar" },
{ "Secret", 42 },
{ "hmm?", null },
};
}
}