title: How to get the selected item from a listview by using switch?
body: <pre><code>   &lt;ListView Grid.ColumnSpan="2" Grid.Row="1" ItemsSource="{Binding TaskList}" SelectedItem="{Binding SelectedTask}" &gt;
        &lt;ListView.ItemTemplate&gt;
          &lt;DataTemplate&gt;
            &lt;ViewCell &gt;
              &lt;StackLayout Orientation="Horizontal" &gt;
                &lt;Label Text="{Binding TaskName}" /&gt;
                &lt;StackLayout Padding="150,0,0,0"&gt;
                  &lt;Switch&gt;&lt;/Switch&gt;
                &lt;/StackLayout&gt;
              &lt;/StackLayout&gt;
            &lt;/ViewCell&gt;
          &lt;/DataTemplate&gt;
        &lt;/ListView.ItemTemplate&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>Hello, I am trying to get the selected item from a <code>ListView</code> by using switch and could not be sure about how to handle. </p>