xaml - WinRT information: Cannot find a resource with the given key -


i creating windows universal app , working on windows phone section. have storyboard simple button animation placed in storyboards.xaml file , i've merged file app.xaml resources.

<application.resources>     <resourcedictionary>         <resourcedictionary.mergeddictionaries>             <resourcedictionary source="ms-appx:///dictionaries/templates.xaml"/>             <resourcedictionary source="ms-appx:///dictionaries/storyboards.xaml"/>         </resourcedictionary.mergeddictionaries>     </resourcedictionary> </application.resources> 

i locate storyboard using code

storyboard sb = app.current.resources["storyboardbutton"] storyboard; 

the animation works fine on main page. once go other page , return main page , re-initiate animation error

winrt information: cannot find resource given key. 

what missing?

i can't see how defined storyboarbutton, try adding x:key="storyboardbutton" definition.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -