working on a pretty large library of controls the generic.xaml gets simpy out of control. I want to split it pretty much by control (although once for a namespace which contains only some simple ones for now).
For that, i am adding more Resource Dictionaries.
Then, in the generic.Xaml I add:
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Themes/Generic.Core.xaml" />
</ResourceDictionary.MergedDictionaries>
And... get a loading error.
What is the correct URL?
This is:
I read the MSDN part about the pack URL's but that sounds really complicated for something that looks SO easy.
;) Please help.
Found it:
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Tradex.Presentation;component/Themes/Generic.Core.xaml" />
</ResourceDictionary.MergedDictionaries>
That works.
Needs to prefix the assembly (replace Tradex.Presentation
with assembly name) and start with the component
item.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With