Resource hierarchy
<UserControl x:Class='SilverlightApplication3.MainPage' xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' xmlns:d='http://schemas.microsoft.com/expression/blend/2008' xmlns:mc='http://schemas.openxmlformats.org/markup-compatibility/2006' mc:Ignorable='d' d:DesignWidth='640' d:DesignHeight='480'> <UserControl.Resources> <LinearGradientBrush x:Key="ButtonFace"> <GradientStop Offset="0.00" Color="Purple" /> <GradientStop Offset="0.50" Color="White" /> <GradientStop Offset="1.00" Color="Yellow" /> </LinearGradientBrush> </UserControl.Resources> <StackPanel x:Name="LayoutRoot" Background="White"> <Button Content="Page Brush" Margin="5" Background="{StaticResource ButtonFace}"></Button> <StackPanel> <StackPanel.Resources> <LinearGradientBrush x:Key="ButtonFace"> <GradientStop Offset="0.00" Color="Yellow" /> <GradientStop Offset="0.50" Color="White" /> <GradientStop Offset="1.00" Color="Purple" /> </LinearGradientBrush> </StackPanel.Resources> <Button Content="Panel Brush" Margin="5" Background="{StaticResource ButtonFace}"></Button> <Button Content="Panel Brush" Margin="5" Background="{StaticResource ButtonFace}"></Button> </StackPanel> </StackPanel> </UserControl>