How to apply sample themes to column header

Nov 10, 2008 at 2:40 PM
Hi again,

Maybe I'm going blind or something but I've looked everywhere (or what seemed to be) for a sample of somebody applying the sample themes used on the wpf grid samples (seen on this page) but I can't find some sample code anywhere. On that page, there are two column header styles (the orange and the blue/green ones), does anybody know how to apply these styles to a grid? once i have a bit of sample code on that i'll be well on my way.

thanks a million!!
sean
Coordinator
Nov 10, 2008 at 5:13 PM
If you want to see the code for what is on that page you can take a look at the hand's on lab, http://windowsclient.net/downloads/folders/hands-on-labs/entry76491.aspx.
Dec 12, 2008 at 8:23 PM
I too was looking forever. Here you go:

<Application x:Class="DHPredictions.Wpf.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    StartupUri="PopNavigator.xaml">
    <Application.Resources>
       
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!-- makes all of the controls in your app look Aero, be sure to include PresentationFramework.Aero as a reference to this project-->
                <ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.normalcolor.xaml" />
                <!-- makes the DataGrid have aero-ish headers -->
                <ResourceDictionary Source="/WPFToolkit;V3.5.31016.1;component/DataGrid/Themes/Aero.NormalColor.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
        

    </Application.Resources>
</Application>

Dec 12, 2008 at 8:25 PM
These links look interesting too

http://www.codeproject.com/KB/WPF/wpfskins.aspx
http://dotnet.org.za/rudi/archive/2008/11/06/wpf-themes-released.aspx
http://dotnet.org.za/rudi/archive/2008/11/07/wpf-themes-update.aspx
http://www.codeplex.com/wpfthemes



http://dotnet.org.za/rudi/archive/2008/11/07/wpf-themes-update.aspx

http://dotnet.org.za/rudi/archive/2008/11/06/wpf-themes-released.aspx