<!-- Example 12-6. Resources at application scope -->

<Application x:Class="ResourcesExample.App"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  StartupUri="Window1.xaml"
  >
  <Application.Resources>
    <LinearGradientBrush x:Key="myBrush" StartPoint="0,0" EndPoint="1,1">
      <LinearGradientBrush.GradientStops>
        <GradientStop Offset="0" Color="Red"/>
        <GradientStop Offset="1" Color="Black"/>
      </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>
  </Application.Resources>
</Application>

<!-- End of Example 12-6. -->