MicrosoftDocs / WindowsCommunityToolkitDocs

Creative Commons Attribution 4.0 International
179 stars 156 forks source link

How to Use EnumValues extension with converter #694

Open c3rebro opened 1 year ago

c3rebro commented 1 year ago

Hello,

this is a direkt feedback from the "give feedback" link on the correspondig learn.microsoft.com article (see below).

My Question is, how can i use the markup extension with localization? I was not able to add a converter to this:

<ComboBox
 ...
  ItemsSource="{ctWinUI:EnumValues Type=enums:CustomerRequestTemplate}"
... >

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

RainDance74 commented 1 year ago

As a workaround you can use ItemTeplate, like this.