我想在外部DLL中創建一個名爲DataTemplate.xaml的ResourceFile,並在WP7頁面中使用它。當我做我的頁面的標題之後,我得到一個錯誤在WindowsPhone 7應用程序中使用外部ResourceDictionary
<ResourceDictionary Source="pack://application:,,,/WP7SharedClassLibrary;component/DataTemplate.xaml" />
的錯誤是 「當前項目不支持‘應用’作爲包URI的授權組成部分。」
有沒有人遇到過這個並解決了這個問題?
不適用於我。給出「屬性/WP_Utilities;component/Resources/PerformanceProgressBar.xaml值超出範圍[Line:17 Position:37] --- Inner Exception --- KeyNotFoundException」運行時出錯。什麼是MyXAMLFile.xaml文件的構建類型? – 2011-01-23 00:06:57