WinRT Using a xaml file share in a universal application

I created a universal application for the Windows App Store in Visual Studio 2013. I created a file ResourceDictionarywith the name AllButtonShapes.xaml. In the general part of my application, the file App.xamlhas this in it:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="AllButtonShapes.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

In the part of the Windows application, this works fine, and my application can find the resources defined in AllButtonShapes.xaml. However, when I try to run part of the Windows Phone application, these resources were not found.

How do I get the Windows Phone portion of my universal application to view the resources defined in my application resources?

+4
source share
1 answer

<ResourceDictionary Source="/AllButtonShapes.xaml"/>

, . , Page. , - . ?

+4

All Articles