How do you mean to alter that?
I copied to my solution the ThemeDataGrid class with no modification (namespace stayed untouched). Also copied the DataGridResourcesKeys (namespace stayed untouched), where I added:
public static ResourceKey DataGridSelectAllButtonStyleKey
{
get
{
if (dataGridSelectAllButtonStyleKey == null)
dataGridSelectAllButtonStyleKey = new ComponentResourceKey(typeof(DataGridResourceKeys), "DataGridSelectAllButtonStyleKey");
return dataGridSelectAllButtonStyleKey;
}
}
Then the style in my resources looks like:
<Style x:Key="{x:Static themes2:DataGridResourceKeys.DataGridSelectAllButtonStyleKey}" TargetType="{x:Type Button}">
<Setter Property="Width" Value="60"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<DockPanel HorizontalAlignment="Center"
IsHitTestVisible="False"
VerticalAlignment="Center">
<TextBlock FontSize="18"
FontWeight="ExtraBlack"
Text="A"
TextAlignment="Center"
ToolTip="DataGridHowTo" />
</DockPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Using the local ThemeDataGrid and when I run my sample app, no datagrid is displayed.