I made partitions on my GUI using Expanders i am using datagrids with customized header styles .i want to change the contents of header on user selection from dropdown on top of the screen.
But if Expander is not expanded once
VisualTreeHelper.GetChildrenCount(parent); where parent is datagird.
it returns 0.So i can not change the header contents .
I have to expand the expander once after that it works properly whether expander is expanded or collapsed,
how to change contents of header of datagrid column without expanding the containing expander.
View Complete Post