How can I get access to an element (TextBlock) within the DataTemplate of GridViewColumnHeader from the code????
I want to set focus on the column header.
How can I get access to an element (TextBlock) within the DataTemplate of GridViewColumnHeader
Share
Just any GridViewColumnHeader or one in particular? You can use this code
And the helper methods
Update
To make a GridViewColumnHeader get focus you can
Depending on where you do this it might not work, then you can try
Also make sure that your GridViewColumnHeader has the following attributes