title: Select multiple items from listview
body: <p>In my Xaml view I have a button that displays a list of users in a list:</p>
  
  <pre><code>&lt;Button Grid.Row="0"  Content="Button"  HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" Margin="0,-5,-1,0"&gt;
              &lt;Button.Flyout&gt;
                  &lt;Flyout&gt;                  
                      &lt;GridView
                      SelectionMode="Multiple"
                      Background="Azure"
                      x:Name="ContactList"                  
                      ItemsSource="{Binding Path=ListOfUsers}"&gt;                        
                          &lt;GridView.ItemTemplate&gt;                           
                              &lt;DataTemplate&gt;                                                                 
                                      &lt;StackPanel Orientation="Horizontal"&gt;
                                          &lt;TextBlock&gt;
                                      &lt;Run FontWeight="Bold" Text="{Binding FirstName}" /&gt;                            
                                      &lt;Run Text="{Binding LastName}" /&gt;                                      
                                          &lt;/TextBlock&gt;                                       
                                      &lt;/StackPanel&gt;                                  
  
                              &lt;/DataTemplate&gt;
                          &lt;/GridView.ItemTemplate&gt;                       
                      &lt;/GridView&gt;                    
                  &lt;/Flyout&gt;
  
              &lt;/Button.Flyout&gt;
          &lt;/Button&gt;
  </code></pre>
  
  <p>As you can see I have <code>selectionMode</code> set to multiple which allows me to select several items from the list.</p>
  
  <p>My question is, how can i bind my selection to a property on my ViewModel:</p>
  
  <pre><code>  private ObservableCollection&lt;User&gt; _selectedUsers;
      public ObservableCollection&lt;User&gt; SelectedUsers
      {
          get { return _selectedUsers; }
          set
          {
              _selectedUsers = value;
              RaisePropertyChanged("SelectedUsers");
          }
      }
  </code></pre>
  
  <p>Ideally, I would like to place a button i the flyout that I can click after havinug made my selection. Any help with this appreciated. Thank you.</p>