Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

merge resourcedictionary from another assembly

$
0
0

Here are lines of xaml from a UserControl.

<ResourceDictionary.MergedDictionaries><ResourceDictionary Source="/BusinessLogic;component/Resources/Resources.xaml" /></ResourceDictionary.MergedDictionaries>

I get this error.

'/BusinessLogic;component/Resources/Resources.xaml' cannot be assigned to property 'Source'. Missing XmlNamespace, Assembly, or ClrNamespace in Mapping instruction. Line '4' Position '5'. C:\Users\bswartz\Documents\Visual Studio 2008\Projects\OmniKeysSln\OmniKeys\Controls\TextBlockWithToolTip.xaml 11 37 OmniKeys

After some web search I added this line before the UserControl element.

<?Mapping XmlNamespace="bl" ClrNamespace="BusinessLogic" Assembly="BusinessLogic" ?>

I added this attribute to the UserControl opening tag.

xmlns:bl="bl"
I still get the error. Any ideas?

Bill Swartz


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>