views:

61

answers:

2

There's no "ResourceDictionary" templates in the WP7 SDK. Is there a different way of creating styles to share across pages?

Thanks!

+2  A: 

App.xaml is the starting point where you can create various styles - specifically in Application.Resources.

And what do you mean by:

There's no "ResourceDictionary" templates in the WP7 SDK

What's wrong with using ResourceDictionary directly in App.xaml?

Dennis Delimarsky
A: 

You can use to share it

    <!--Application Resources-->
<Application.Resources>
    <Style x:Key="bestButtonStyle" TargetType="ButtonBase">
...

Or page resouces to limit the scope

    <phone:PhoneApplicationPage.Resources>
            <Storyboard  x:Name="historyAnimationIn">
lukas