title: using viewbox in ResourceDictionary file
body: <p>i have ResourceFile1.xaml file
  its content</p>
  
  <pre><code>&lt;ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt;
  
  &lt;Viewbox x:Key="Flash-On" &gt;
      &lt;Grid  Width="256" Height="256" Visibility="Visible"&gt;
          &lt;Path Tag="Icon" Data="F1M376.251,632.755L385.665,632.755 381.302,646.07 394.618,646.07 389.11,660.302 393.01,660.302 381.531,672.93 377.398,660.763 381.073,660.763 383.829,652.268 369.825,652.268 376.251,632.755z" Stretch="Uniform" Fill="#FFFFFFFF" Width="176" Height="176" Margin="0,0,0,0" RenderTransformOrigin="0.5,0.5"&gt;
              &lt;Path.RenderTransform&gt;
                  &lt;TransformGroup&gt;
                      &lt;TransformGroup.Children&gt;
                          &lt;RotateTransform Angle="0" /&gt;
                          &lt;ScaleTransform ScaleX="1" ScaleY="1" /&gt;
                      &lt;/TransformGroup.Children&gt;
                  &lt;/TransformGroup&gt;
              &lt;/Path.RenderTransform&gt;
          &lt;/Path&gt;
      &lt;/Grid&gt;
  &lt;/Viewbox&gt;
  
  
  &lt;Viewbox x:Key="Flash-Off"&gt;
              ....
  &lt;/Viewbox&gt;
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>The code for PhoneAppplicationPage</p>
  
  <pre><code>    &lt;phone:PhoneApplicationPage.Resources&gt;
  
      &lt;ResourceDictionary&gt;
          &lt;ResourceDictionary.MergedDictionaries&gt;
              &lt;ResourceDictionary Source="ResourceFile1.xaml"/&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/phone:PhoneApplicationPage.Resources&gt;
  </code></pre>
  
  <p>but this codes not working.
  Designer Error: InvalidOperationException: Element is already the child of another element.
  also <code>&lt;Button Content="{StaticResource Flash-On}"/&gt;</code> If I use a similar code
  Runtime Error: Failed to assign to property 'System.Windows.Controls.ContentControl.Content'. 
  if viewbox use in Grid.Resources no problem works fine but i want to use with ResourceDictionary.how can i do?</p>