我在Visual Studio 2013创建了一个通用的Windows应用商店应用程序。我创建了一个名为AllButtonShapes.xaml的ResourceDictionary文件。在我的应用程序的共享部分中,App.xaml文件中包含了以下内容:
在应用程序的Windows部分,这个功能很好地工作了,我的应用程序能够找到在
我该如何让我的通用应用程序的Windows Phone部分看到我应用程序资源中定义的资源?
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="AllButtonShapes.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
在应用程序的Windows部分,这个功能很好地工作了,我的应用程序能够找到在
AllButtonShapes.xaml
中定义的资源。然而,当我尝试启动应用程序的Windows Phone部分时,这些资源无法被找到。我该如何让我的通用应用程序的Windows Phone部分看到我应用程序资源中定义的资源?