Skip to content

[X] Avoid calling ResourceDictionary.SetAndLoadSource from code generated by XamlC #19648

@simonrozsival

Description

@simonrozsival

It should be possible to avoid calling ResourceDictionary.SetAndLoadSource when all XAML resources are compiled. It should be possible to generate IL that creates an instance of the ResourceDictionary subclass corresponding to the path directly. Besides from minor perf improvement, the code should be more trimming friendly (we wouldn't even need to use a feature flag to avoid XAML parsing at runtime in this codepath).

/cc @StephaneDelcroix

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions