title: how to load custom staticresource
body: <p>I have to 2 files:
  ButtonStyle.xaml and
  ConstantsStyle.xaml</p>
  
  <p>in App.xaml, i will init </p>
  
  <pre><code>    &lt;Application.Resources&gt;        
              &lt;ResourceDictionary&gt;
                  &lt;ResourceDictionary.MergedDictionaries&gt;
                      &lt;ResourceDictionary Source="/Zalo;component/ResourceDictionary/480x800/ConstantsStyle.xaml"/&gt;
                      &lt;ResourceDictionary Source="/Zalo;component/ResourceDictionary/480x800/ButtonStyle.xaml"/&gt;
                   &lt;/ResourceDictionary.MergedDictionaries&gt;
              &lt;/ResourceDictionary&gt;
  ......
      &lt;/Application.Resources&gt;
  </code></pre>
  
  <p>file ConstantsStyle.xaml</p>
  
  <pre><code>&lt;ResourceDictionary
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
      xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"&gt;
  
      &lt;Thickness x:Key="GenericButtonStylePadding"&gt;0,7&lt;/Thickness&gt;
  
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>file ButtonStyle.xaml</p>
  
  <pre><code>&lt;ResourceDictionary
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
      xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
      xmlns:usercontrols="clr-namespace:Zalo.UserControls"&gt;
  
      &lt;Style x:Key="GenericButtonStyle" TargetType="Button"&gt;
          &lt;Setter Property="VerticalContentAlignment" Value="Center"/&gt;
          &lt;Setter Property="HorizontalContentAlignment" Value="Center"/&gt;
          &lt;Setter Property="Padding" Value="{StaticResource GenericButtonStylePadding}"/&gt;
     &lt;/Style&gt;
  
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>App crash runtime. Because Cannot find a Resource with the Name/Key GenericButtonStylePadding???</p>
  
  <p>How can i run app correctly??? Please help me</p>