title: WinRT information: Cannot find a resource with the given key
body: <p>I am creating a Windows Universal app and now working on the Windows Phone section. I have a Storyboard for a simple button animation placed in the Storyboards.xaml file and I've merged this file with my App.xaml Resources.</p>
  
  <pre><code>&lt;Application.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;ResourceDictionary.MergedDictionaries&gt;
              &lt;ResourceDictionary Source="ms-appx:///Dictionaries/Templates.xaml"/&gt;
              &lt;ResourceDictionary Source="ms-appx:///Dictionaries/Storyboards.xaml"/&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/Application.Resources&gt;
  </code></pre>
  
  <p>I locate the storyboard using this code</p>
  
  <pre><code>Storyboard sb = App.Current.Resources["StoryboardButton"] as Storyboard;
  </code></pre>
  
  <p>The animation works fine on the main page. But once I go to other page and return back to the main page and re-initiate the animation I get this error</p>
  
  <pre><code>WinRT information: Cannot find a resource with the given key.
  </code></pre>
  
  <p>What am I missing?</p>