سؤال

I need to display a list of items in list picker,Im using list picker with multiple selection mode.Is there any way to check the check boxes of multiple items from c#(without user's interaction).I found many ways to find the list of selected items but couldnt find how to set multiple items as selected from code behind.Please help.I tried using

for(int i=0;i<selecteditems.count;i++)
{
 listpicker.SelectedItem=listpicker.Items[i];
}

This doesnt work ..

هل كانت مفيدة؟

المحلول 2

This may be help you

listpicker.SelectedItems = List<your selected items>;

نصائح أخرى

Use the SelectedItems property for setting multiple items as selected.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top