Reputation: 8244
Where GridView
's column header splitters are defined? I tried to use Snoop to find them, but I just can't localize template I need.GridViewColumnHeader
does not define any splitters. The problem is that default ones are to thin and sometimes It is really hard to select them. Did anyone ever change them?
Upvotes: 1
Views: 1089
Reputation: 7170
I had a poke around and found a thumb control is used for the splitting behaviour. Although it looks slim the Thumb is 18px wide.
You can change it by altering the template part named PART_HeaderGripper
which is defined in the template for a GridViewColumnHeader. A simple way to do this in blend is add a GridViewColumnHeader to your window right click and and edit a copy of the template. Then you can apply your edited template by setting:
<GridView ColumnHeaderContainerStyle="{StaticResource GridViewColumnHeaderStyle}">.
The thumbs properties are set in a style named GridViewColumnHeaderGripper
.
Upvotes: 2