title: Binding IsSelected on ListViewItem not working for me in UWP application
body: <p>I'm working with a list of objects that have a <code>Selected</code> property and I'm trying to bind it to the <code>IsSelected</code> property on <code>ListViewItem</code> within a multi-select <code>ListView</code> control in UWP.</p>
  <p>I just can't seem to get the binding to work. The checkboxes in the <code>ListView</code> do not render checked if <code>Selected = True</code> and the Set on <code>Selected</code> never gets triggered when checking an item.</p>
  <p><a href="https://i.stack.imgur.com/ZO1lH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZO1lH.png" alt="enter image description here" /></a></p>
  <p>SettingsPage.xaml</p>
  <pre><code>&lt;Page.Resources&gt;
      &lt;DataTemplate x:Key=&quot;PreviewColumnTemplate&quot; x:DataType=&quot;models:Column&quot;&gt;
          &lt;TextBlock&gt;
              &lt;Run Text=&quot;{x:Bind name}&quot;/&gt;
              &lt;Run Text=&quot; (&quot;/&gt;
              &lt;Run Text=&quot;{x:Bind ColumnValidation.column_label}&quot;/&gt;
              &lt;Run Text=&quot;) &quot;/&gt;
          &lt;/TextBlock&gt;
      &lt;/DataTemplate&gt;
  
      &lt;Style x:Key=&quot;previewColumnListViewItem&quot; TargetType=&quot;ListViewItem&quot;&gt;
          
      &lt;/Style&gt;
  &lt;/Page.Resources&gt;
          
  &lt;ListView
      x:Name=&quot;previewColumnListView&quot;
      ItemsSource=&quot;{x:Bind ViewModel.CurrentDrillHole.Collar.Columns, Mode=TwoWay}&quot;
      ItemTemplate=&quot;{StaticResource PreviewColumnTemplate}&quot;
      Height=&quot;400&quot;
      SelectionMode=&quot;Multiple&quot;
      SelectionChanged=&quot;previewColumnListView_SelectionChanged&quot;&gt;
      &lt;ListView.Resources&gt;
          &lt;Style TargetType=&quot;ListViewItem&quot; BasedOn=&quot;{StaticResource previewColumnListViewItem}&quot;&gt;
              &lt;Setter Property=&quot;IsSelected&quot; Value=&quot;{Binding Selected, Mode=TwoWay}&quot;/&gt;
          &lt;/Style&gt;
      &lt;/ListView.Resources&gt;
  &lt;/ListView&gt;
  </code></pre>
  <p>The <code>ViewModel.CurrentDrillHole.Collar</code> object is of type <code>Table</code> and looks like so:</p>
  <pre><code>public class Table : BindableBase
  {
      public string Name { get; set; }
      public TableValidation TableValidation { get; set; }
      public List&lt;Column&gt; Columns { get; set; }
      public List&lt;Row&gt; Rows { get; set; } = new List&lt;Row&gt;();
  }
  </code></pre>
  <p>And the <code>Column</code> object looks like so. It is here I want to bind to the <code>Selected</code> property.</p>
  <pre><code>public class Column : BindableBase, INotifyPropertyChanged
  {
      public string name { get; set; }
      public ColumnValidation ColumnValidation { get; set; }
      public List&lt;RefEntryValue&gt; LookupValues { get; set; } = null;
  
      private bool _selected = false;
  
      public bool Selected {
          get =&gt; _selected;
  
          set
          {
              _selected = value;
  
              OnPropertyChanged();
          }
      }
  }
  </code></pre>
  <p>Any ideas of things I can try would be greatly appreciated. Thanks for the help!</p>