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.
It seems that a somewhat easy task like showing and selecting an
Enumvalue in aComboBoxisn'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 anEnumin aComboBox. In addition a localized version of this example (usingx:uidand 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.