Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Xaml] Simplify loading ResourceDictionary from Source #21429

Merged
merged 7 commits into from
Mar 27, 2024

Conversation

simonrozsival
Copy link
Member

Description of Change

This is a follow-up to #20776. The goal of this PR is to make it easier to enable trimming and AOT analyzers in Controls.Xaml.csproj.

Instead of doing all the XAML resource loading in the RDSourceTypeConverter and the unintuitive call from Controls.Core into Controls.Xaml through the IResourcesLoader interface (resolved via the DependencyService), the XAML parser can load the resource dictionary and call into Controls.Core once it is done.

Issues Fixed

Contributes to #19648 and #18658

/cc @StephaneDelcroix

@simonrozsival simonrozsival changed the title [Xaml] Remove IResourcesLoader [Xaml] Simplify loading ResourceDictionary from Source Mar 25, 2024
@simonrozsival simonrozsival marked this pull request as ready for review March 25, 2024 16:14
@simonrozsival simonrozsival requested a review from a team as a code owner March 25, 2024 16:14
@rmarinho rmarinho requested review from StephaneDelcroix and removed request for tj-devel709 March 26, 2024 11:39
Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rmarinho rmarinho merged commit f266adf into dotnet:net9.0 Mar 27, 2024
44 of 47 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants