Materialdesigninxamltoolkit: All Select button in DagaGrid dose not support Dark Theme

Created on 24 Mar 2020  Â·  3Comments  Â·  Source: MaterialDesignInXAML/MaterialDesignInXamlToolkit

When HeadersVisibility of a DataGrid is All, a button to select all rows and columns is displayed.
However, if I select Dark-Theme, the color of the button remains the same as Light-Theme.

At Dark-Theme
スクリーンショット 2020-03-24 22 36 00

At Light-Theme
スクリーンショット 2020-03-24 22 36 19

Sample code is here

<Window
   x:Class="MaterialDesignDataGridTest.MainWindow"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
   Width="300" Height="250">
   <Window.Resources>
      <materialDesign:BundledTheme BaseTheme="Dark"
         PrimaryColor="DeepPurple" SecondaryColor="Lime" />
   </Window.Resources>
   <DataGrid HeadersVisibility="All">
      <DataGrid.Columns>
         <DataGridTextColumn Binding="{Binding Text}" Header="Text" />
      </DataGrid.Columns>
      <TextBlock Text="AAA" />
      <TextBlock Text="BBB" />
      <TextBlock Text="CCC" />
   </DataGrid>
</Window>

bug

Most helpful comment

I am currently investigating

All 3 comments

61 may be related to this Issue.

However, I'm not sure what #61 means.

I am currently investigating

I created a pull request which resolves this

Was this page helpful?
0 / 5 - 0 ratings