boolean attached property
WPF
1
Posts
1
Posters
0
Views
1
Watching
-
Hello,
I have a DataGrid. Some of the column are delcared in Xaml and some are dynamic and declared in code. I have a collection of these columns but there is a code where i need to clear all DataGrid columns except the one delcared in code (this is done also using AttachedProperty - i have a collection of columns declared in code and i bind it to an attachedProperty, there i clear the DataGrid columns as i specified).
I want to create anothe Boolean attached Property which i will set in Xaml to true if i want to keep the column .
For this i need to keep a list of all Columns that this boolean attached property is true. How can i do it?
BTW, My Class which handles the AttachedProperties is Static