A) If I have a resource that will be used from a user control, which one is more efficient in terms of performance ...? To include it in the user control area yourself or refer to a resource from app.xaml ..?
Since XAML is compiled into BAML and then loaded at startup, you will not see the differences. Now, most XAML things are common (i.e. Linear brush, drop-down style), so it's best not to put it directly on the control to reuse the same style and factorize
B) Now we have all 100 styles mentioned in appl.xaml. Moving them to the appropriate user controls will be worth the effort.
Effective counter, as you cannot reuse it.
If your XAML is slow and you are using MVVM, check how many objects are created. I had a problem this year, recreating the context menu for each element and leaving it available for all elements (in the tree structure) with improved initialization time.
source share