How to select all items in windows phone list picker -


i have windows phone list picker control in code bind items c#.i.e, items comes services .i have keep "select all" item .so can select items @ once.i added "select all" .on checking "select all" check box .i not event execute code check boxes checked , ui reflected

thanks in advance

try code

private void selectall(object sender, routedeventargs e) {     yourlistbox.selectall(); } 

for more information check out documentation in msdn http://msdn.microsoft.com/en-us/library/system.windows.controls.listbox.selectall%28v=vs.110%29.aspx

im not sure if right way, works

 list<object> arr = new list<object>((((system.collections.generic.dictionary<string, string>)(s))).values);      (int k = 0; k < data.length; k++)                 {                     object selectitem = arr[k];                     items.add(selectitem);                 }    yourlistbox.selecteditems = items; 

this how made work in case way create list object containing elements data source , assigning to selected items.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -