Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for showing Enums in ComboBox (localized) #55

Open
suchja opened this issue Sep 28, 2021 · 0 comments
Open

Add example for showing Enums in ComboBox (localized) #55

suchja opened this issue Sep 28, 2021 · 0 comments
Assignees
Labels
Pri2 Topic is in the second 25% of page views for the repo. reunion/prod winui-reference/tech

Comments

@suchja
Copy link

suchja commented Sep 28, 2021

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.

@PRMerger14 PRMerger14 added the Pri2 Topic is in the second 25% of page views for the repo. label Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pri2 Topic is in the second 25% of page views for the repo. reunion/prod winui-reference/tech
Projects
None yet
Development

No branches or pull requests

4 participants