<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ResourceDictionary_Sample">
    <LinearGradientBrush x:Key="background1"  StartPoint="0,0" EndPoint="1,1">
        <GradientStop Offset="0.0" Color="Gray" />
        <GradientStop Offset="1.0" Color="DarkGray" />
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="background2"  StartPoint="0,0" EndPoint="1,1">
        <GradientStop Offset="0.0" Color="#FFF3E7E7" />
        <GradientStop Offset="1.0" Color="#FF615C5C" />
    </LinearGradientBrush>
</ResourceDictionary>