Posted 12 January 2022, 10:23 am EST
I’m just starting out using the WPF FlexGrid to convert from the standard WPF DataGrid and I’m trying to bind the IsVisible property of some GridColumns in a FlexGrid to a property in my view model to control when they are visibile or not.
IsVisibile is not a DependencyProperty, so I can’t bind to it. GridColumn is not a DependencyObject, so I can’t use an AttachedProperty. Is there some other way that is recommended to dynamically control GridColumn visibility? There are plenty of hacky ways to solve it, but I was hoping a good method already exists.