Possible duplicate:WPF4 xaml-style DataGridHeaderBorder
I found several styles for WPF DataGrid online, and all of them are for pre-release DataGrid. Now, I am using the .NET4 DataGrid, I received a compilation error complaining that the DataGridHeaderBorder was not found. Based on Microsoft, it is located in the Microsoft.Windows.Themes namespace. No matter what I try, I can not get it to work.
, .NET4 . . , :
xmlns:dg="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
, PresentationFramework.Aero .
PresentationFramework.Aero
.. ( )
<Style x:Key="Consulta_Grilla_HeaderStyle" TargetType="{x:Type DataGridColumnHeader}" > <Style.Resources> <Style TargetType="{x:Type Grid}" > <Setter Property="TextBlock.Foreground" Value="Yellow"/> </Style> </Style.Resources> </Style>
Source: https://habr.com/ru/post/1767788/More articles:Location CSV files in Android - androidHow can I manage versions of my Perl Moose objects? - perlCSS and jQuery links navigation: how to update the class - jqueryC # regex: get sub-capture? - c #Floating point and integer ambiguity - c ++Web page scraper: click javascript button - pythonWhat happens between the Page.PreLoad and Page.Load events? - asp.netColdfusion cfchart stacks - coldfusionOpening an HTML page in a browser from Common Lisp - htmlSimple physical modeling in java does not work. - javaAll Articles