It’s very easy, just handle Click event on your checkbox:
private void CheckBox_Click(object sender, RoutedEventArgs e) {
var cb = sender as CheckBox;
var item = cb.DataContext;
myListView.SelectedItem = item;
}
More Related Contents:
- Select item programmatically in WPF ListView
- Data binding to SelectedItem in a WPF Treeview
- Add Items to Columns in a WPF ListView
- Make ListView.ScrollIntoView Scroll the Item into the Center of the ListView (C#)
- Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead
- Is it possible to implement smooth scroll in a WPF listview?
- Selecting a Textbox Item in a Listbox does not change the selected item of the listbox
- WPF Check box: Check changed handling
- WPF checkbox binding
- Get ListView Visible items
- mvvm how to make a list view auto scroll to a new Item in a list view
- WPF Shaped Button – Visaul Studio/Blend
- Prevent using Dispatcher.Invoke in WPF code
- .NET Memory issues loading ~40 images, memory not reclaimed, potentially due to LOH fragmentation
- page.DataContext not inherited from parent Frame?
- How do I exit a WPF application programmatically?
- Datagrid binding in WPF
- Open default mail client along with a attachment
- WPF DataBinding not updating?
- How can I simulate a mouse click at a certain position on the screen?
- Restart application using C#
- Convert System.Windows.Media.ImageSource to System.Drawing.Bitmap
- How can I open Windows Explorer to a certain directory from within a WPF app?
- Dynamically add multiple buttons to wpf window?
- Image file copy, is being used by another process
- WPF loading spinner
- How do I bind a List to a WPF DataGrid?
- Problems with binding to Window Height and Width
- How to draw arc with radius and start and stop angle
- Get the item doubleclick event of listview