I used an auto-integer user I have a dictionary type My problem occurs whenever a name is chosen, I want to retrieve the ID associated with it. But I do not want the user to display the ID because they are for internal purpose. How can I do this? thank you in advanced. dictionary & lt; Int, string & gt; I want to show only the name in the autocomplete box, which includes the ID and the name. I can do it with
auto complete box 1. Items Source = dict.values;
I used the following:
& autocompletebox items source = "{Binding MyDict}" Velmepherpath = "Value" & gt; & Lt; AutoCompleteBox.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; Text Block Text = {Compulsive Values} / & gt; & Lt; / DataTemplate & gt; & Lt; /AutoCompleteBox.ItemTemplate> & Lt; / AutoCompleteBox & gt;
Comments
Post a Comment