-
Notifications
You must be signed in to change notification settings - Fork 40
Description
It seems that a somewhat easy task like showing and selecting an Enum value in a ComboBox isn't easy at all. For better usage of WinUI 3 and better documentation I propose to add an example, which shows how to show and select an Enum in a ComboBox. In addition a localized version of this example (using x:uid and resx-file) would be great.
It seems that currently there is a bug with the initialization (microsoft/microsoft-ui-xaml#5922), but otherwise the example given in (microsoft/microsoft-ui-xaml#5922) or even this approach from UWP would work with WinUI 3 as well.
In case you consider adding an example to the docs, I would be willing to provide the code for the example.
A workaround might be an example application showing this scenario. Unfortunately the microsoft/WinUI-3-Demos do not contain such an example. Event searching StackOverflow did not provide any good help on this problem.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 1e6068ed-6f8a-50c2-a112-e1f418d62b9d
- Version Independent ID: 35c7bbab-7b19-dfc8-e741-9dadd32bdf75
- Content: ComboBox Class (Microsoft.UI.Xaml.Controls) - WinUI
- Content Source: winui-api-build/xml/Microsoft.UI.Xaml.Controls/ComboBox.xml
- Product: reunion
- Technology: winui-reference
- GitHub Login: @Karl-Bridge-Microsoft
- Microsoft Alias: kbridge