What is the default WPF GridViewItem foreground color?

In WPF, if you use a ListView control with a View in a GridView, the foreground color of the default elements will be dark blue. What is the actual brush size used for this? I looked at the default templates of ListViewitem, GridViewItem, etc., but I could not figure out where the foreground color was set. I would appreciate any pointer. Many thanks.

+3
source share
1 answer

Probably #FF042271which is in the standard GridView style.

<Style x:Key="{x:Static GridView.GridViewStyleKey}"
       TargetType="{x:Type ListView}">
    <!-- ... -->
    <Setter Property="Foreground"
            Value="#FF042271"/>

The default styles can be downloaded to MSDN , follow the link in the second paragraph.

+4
source

All Articles