Split Generic.Xaml - boot problem merges set. Please help with the source.

When working on a fairly large library of controls, generic.xaml gets out of hand. I want to split it pretty much with control (though once for a namespace that currently only contains some simple ones).

To do this, I add more resource dictionaries.

Then in generic.Xaml add:

<ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="Themes/Generic.Core.xaml" />
</ResourceDictionary.MergedDictionaries>

And ... get a download error.

What is the correct URL?

It:

  • In a dll file containing only controls (not exe or something else).
  • Generic.Xaml and the other (currently: Generic.Core.xaml) live in the same assembly, in the same folder.

I read the MSDN part about the package url, but it sounds very complicated for something that looks so easy.

;) Please, help.

+5
1

:

<ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="/Tradex.Presentation;component/Themes/Generic.Core.xaml" />
</ResourceDictionary.MergedDictionaries>

.
Tradex.Presentation ( Tradex.Presentation ) component.

+12

Source: https://habr.com/ru/post/1755666/


All Articles