<StackPanel> <CheckBox Content="xyz" Name ="Check1"/> <CheckBox Margin="5" Content="SomeContent" Name="Check2" Click="OnClicked"/> </StackPanel>
void OnClicked(object sender, RoutedEventArgs e) { // I intend to eventually filter a DataGrid when clicked on the check box CheckBox ck = sender as CheckBox; if(ck.IsChecked == true) { // Set some variable to true } else { // Set some variable to false } FilterGrid(); } void FilterGrid() { // Apply filters to the DataGrid view collection }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)