c# - Selected index of listpicker in wp7 -
i have silverlight listpicker control in page , binded list<countries> let say
united states
united kingdom
pakistan
denmark
i bind list listpickercountries want default selected value pakistan
i can set selected item in way
listpickercountries.selectedindex = 2; is there way can find index of pakistan code behind , set selectedietm of listpicker way
listpickercountries.selectedindex.contain("pakistan"); or ???
you have search list country want, check index , set selected index on picker itself.
indexes same.
Comments
Post a Comment