Localized UWP ComboBox example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ComboBox DisplayMemberPath="Content" | |
SelectedIndex="{x:Bind Status, Mode=TwoWay}"> | |
<ComboBoxItem x:Uid="ProjectStatus_Completed" /> | |
<ComboBoxItem x:Uid="ProjectStatus_Active" /> | |
<ComboBoxItem x:Uid="ProjectStatus_Archived" /> | |
</ComboBox> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Project | |
{ | |
public int Status { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<data name="ProjectStatus_Active.Content" xml:space="preserve"> | |
<value>Active</value> | |
</data> | |
<data name="ProjectStatus_Archived.Content" xml:space="preserve"> | |
<value>Archived</value> | |
</data> | |
<data name="ProjectStatus_Completed.Content" xml:space="preserve"> | |
<value>Completed</value> | |
</data> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment