【发布时间】:2016-05-16 12:30:14
【问题描述】:
我正在创建一个 Windows Universal 8.1 应用程序。在Windows Phone 8.1 项目里面我有一个Xaml 文件作为ResourceDictionary。 在共享文件夹中,我有两个项目(Windows 和 Windows Phone)的通用 App.xaml。
ResourceDictionary 的路径是:"MyApp.WindowsPhone/Assets/Styles/JumpList.xaml"
在 App.xaml 我添加:
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="MyApp.WindowsPhone/Assets/Styles/JumpList.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
但我得到了:
An error occured while finding the resource dictionary "MyApp.WindowsPhone/Assets/Styles/JumpList.xaml"
知道我的路径有什么问题吗?
【问题讨论】:
标签: c# xaml windows-phone-8.1 win-universal-app resourcedictionary