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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -