Setting ShowCheckBoxSelectorColumn="True" when a TableView is defined as a resource throws an exception. See the attached project. The workaround is to implement a behavior that sets ShowCheckBoxSelectorColumn="True" in the TableView.Loaded event handler.
public class TableViewCheckBoxColumnBehavior : Behavior<TableView> {
protected override void OnAttached() {
base.OnAttached();
AssociatedObject.Loaded += OnLoaded;
}
private void OnLoaded(object sender, RoutedEventArgs e) {
AssociatedObject.ShowCheckBoxSelectorColumn = true;
}
protected override void OnDetaching() {
AssociatedObject.Loaded -= OnLoaded;
base.OnDetaching();
}
}
Hello Mark,
Thank you for providing the test project. I was able to replicate this issue on our side. I will forward this ticket to our R&D team and we will contact you as soon as we get any results.
Thanks,
Elliot