wpf - How to reference a ResourceDictionary from another assembly -
i have resourcedictionary defined in app.xaml that:
<application x:class="controller.app" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <application.resources> <resourcedictionary> <resourcedictionary.mergeddictionaries> <resourcedictionary source="resources/mydictionary.xaml" /> </resourcedictionary.mergeddictionaries> </resourcedictionary> </application.resources> </application>
now, since im using prism, would use styles in "mydictionary.xaml" in other modules/assemblies within application.
the problem can access styles in modules like:
<label style="{staticresource mylblstyle}"/>
but in module cant access same style. error "the resource "mylblstyle" not resolved".
so far couldn't find difference between modules can access resource , modules cant. reading lot packuri etc. couldn't solve problem.
is there else have define or in modules? @ modules work didn't anything. can access styles via:
style="{staticresource mylblstyle}"/>
Comments
Post a Comment