ControlTemplate no longer finds resources

First I created UserControl

.
In xaml I can link to StaticResource

which are in the main app resources.

Then I refactored this UserControl

on Control

and through Themes /Generic.xaml ,
I apply ControlTemplate

(I need this ).

But this way is StaticResource

no longer found (a is XamlParseException

thrown at runtime).

I could combine ResourceDictionaries

that contain StaticResource

, I also need in the Genericl.xaml file, but I would like to avoid this due to performance issues

What is the mechanics of this behavior?

+3
wpf user-controls controltemplate resourcedictionary


source to share


No one has answered this question yet

See similar questions:

137
What's so special about Generic.xaml?
nineteen
Merged dictionaries and resource search

or similar:

nineteen
Merged dictionaries and resource search
4
Add a static ResourceDictionary to UserControls before parsing XAML
3
Using a (pooled) resource dictionary in a C # class library project
1
Generic definition in ResourceDictionary or CodeBehind?
0
WPF "inherits" the storyboard
0
Xaml Organization - Cannot Apply StaticResource From Another Xaml File
0
A custom control defined in an assembly with ControlTemplates defined in another
0
How to reuse menu and toolbar across different WPF custom elements with new buttons added?
0
Resources not permitting from ResourceDictionaries
0
WPF Skinning with various system themes



All Articles
Loading...
X
Show
Funny
Dev
Pics