2c22b68e15
`ComboBox` has a text search function that allows users to type letters, and the `ComboBoxItem` starting with those letters is shown. In order to enable this functionality, the underlying items must be `IStringable`. This exposes a `ToString()` function and fixes all of our issues. This PR adds the `IStringable` interface to `ColorScheme`, `Profile`, and `EnumEntry`. ## References #6800 - Settings UI Epic #8768 - Keyboard Navigation https://github.com/microsoft/microsoft-ui-xaml/issues/4182 - discussion with WinUI about how to overcome this issue ## Validation Steps Performed Tested... - Launch > Default Profile - Color Schemes > Name - Profile > Appearance > Color scheme - Profile > Appearance > Font weight Also tested radio buttons, but those still don't work, unfortunately. Looks like they don't have the same underlying mechanism.
12 lines
337 B
Plaintext
12 lines
337 B
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
namespace Microsoft.Terminal.Settings.Editor
|
|
{
|
|
[default_interface] runtimeclass EnumEntry : Windows.UI.Xaml.Data.INotifyPropertyChanged, Windows.Foundation.IStringable
|
|
{
|
|
String EnumName { get; };
|
|
IInspectable EnumValue { get; };
|
|
}
|
|
}
|