mirror of
https://github.com/microsoft/PowerToys
synced 2025-09-01 23:15:18 +00:00
not this
This commit is contained in:
@@ -172,10 +172,11 @@ internal sealed partial class SampleListPage : ListPage
|
||||
{
|
||||
Title = "Get the name of the Foreground window",
|
||||
},
|
||||
new ListItem(new JustHasProps())
|
||||
{
|
||||
Title = "Not actually invokable",
|
||||
},
|
||||
|
||||
// new ListItem(new JustHasProps())
|
||||
// {
|
||||
// Title = "Not actually invokable",
|
||||
// },
|
||||
new ListItem(new CommandWithProperties())
|
||||
{
|
||||
Title = "I have properties",
|
||||
@@ -191,7 +192,7 @@ internal sealed partial class SampleListPage : ListPage
|
||||
];
|
||||
}
|
||||
|
||||
internal sealed partial class CommandWithProperties : InvokableCommand, ICommand2
|
||||
public sealed partial class CommandWithProperties : InvokableCommand, ICommand2
|
||||
{
|
||||
public override string Name => "Whatever";
|
||||
|
||||
@@ -204,7 +205,7 @@ internal sealed partial class SampleListPage : ListPage
|
||||
}
|
||||
|
||||
#nullable enable
|
||||
internal sealed partial class OtherCommandWithProperties : ICommand2, IInvokableCommand
|
||||
public sealed partial class OtherCommandWithProperties : ICommand2, IInvokableCommand
|
||||
{
|
||||
public string Name => "Revetahw";
|
||||
|
||||
@@ -228,7 +229,7 @@ internal sealed partial class SampleListPage : ListPage
|
||||
};
|
||||
}
|
||||
|
||||
internal sealed partial class JustHasProps : ICommand2
|
||||
public sealed partial class JustHasProps : ICommand2
|
||||
{
|
||||
public string Name => "JustHasProps";
|
||||
|
||||
@@ -252,7 +253,7 @@ internal sealed partial class SampleListPage : ListPage
|
||||
};
|
||||
}
|
||||
|
||||
internal sealed partial class AnotherCommandWithProperties : InvokableCommand, IHaveProperties
|
||||
public sealed partial class AnotherCommandWithProperties : InvokableCommand, IHaveProperties
|
||||
{
|
||||
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(IHaveProperties))]
|
||||
static AnotherCommandWithProperties()
|
||||
|
Reference in New Issue
Block a user