Resource dictionary
-
Hello,
How do i use ResourceDictionary?
I created a xaml file with resourceDictionary with ImageSource
Than in my UserControl i must to mention a key for the resourceDictionary (otherwise it doesn't compile):
<ResourceDictionary x:Key="resourceDictionary">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/AQUA.ClientServices.Presentation;component/Images/ImageResources.xaml">
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
But when i am trying to use one of the resources in the dictionary it says the resource key can't be found -
Hello,
How do i use ResourceDictionary?
I created a xaml file with resourceDictionary with ImageSource
Than in my UserControl i must to mention a key for the resourceDictionary (otherwise it doesn't compile):
<ResourceDictionary x:Key="resourceDictionary">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/AQUA.ClientServices.Presentation;component/Images/ImageResources.xaml">
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
But when i am trying to use one of the resources in the dictionary it says the resource key can't be found -
Have you inserted this code within your App.xaml file? If not, place in App.xaml file and remove the key attribute all together
Hopefully that will help
"You get that on the big jobs."
I right my application using PRISM and my user control is a module. How can i define to use the resource dictionary in the scope of the userControl ?
-
I right my application using PRISM and my user control is a module. How can i define to use the resource dictionary in the scope of the userControl ?