d1bf0fcd1e
Similar to #9262. This creates another data template specifically for command palette items that open up more options. We leverage the localization key from #9262 to apply help text to this template automatically. Using the data template approach, we now have no need for the `HasNestedComandsVisibilityConverter`, so that set of files is now deleted. The logic to detect nested commands was moved to the template selector. ## Validation Steps Performed Tested using NVDA. Addresses #7908 better
15 lines
436 B
Plaintext
15 lines
436 B
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
namespace TerminalApp
|
|
{
|
|
[default_interface] runtimeclass PaletteItemTemplateSelector : Windows.UI.Xaml.Controls.DataTemplateSelector
|
|
{
|
|
PaletteItemTemplateSelector();
|
|
|
|
Windows.UI.Xaml.DataTemplate TabItemTemplate;
|
|
Windows.UI.Xaml.DataTemplate NestedItemTemplate;
|
|
Windows.UI.Xaml.DataTemplate GeneralItemTemplate;
|
|
}
|
|
}
|