1. Add lib to your project reference

2. Add Using

using MultiPhotoChooser;

3. Instanciation

MultiPhotoChooserTask task = new MultiPhotoChooserTask();

// Set a selection limit if needed, otherwise user could select as many photos as they want.

task.SelectionLimit = 10;
task.OnComplete += task_OnComplete;

4. Call Show() static method

private void btnShowChooser_Click(object sender, RoutedEventArgs e)

{
     task.Show();
}

5. In task_OnComplete

void task_OnComplete(object sender, MultiPhotoResult e)
{
     if (lls_photolist.ItemsSource != null)
           lls_photolist.ItemsSource = null;

               lls_photolist.ItemsSource = e.ChosenPhotoList;
          }

6. Add Close() static method in OnBackKeyPress

if (task.IsOpen)
{
     task.Close();
     e.Cancel = true;
}

 

That’s all, enjoy !

Last edited Dec 25, 2013 at 6:49 AM by alanfeng99, version 1