Skip to content

Conversation

@StephaneDelcroix
Copy link
Contributor

Description of Change, Issues fixed

ValueProvider expects the first object to be the parent, not the caller.

Also

ValueProvider expects the first object to be the parent, not the caller.

Also fixes #31381
Copilot AI review requested due to automatic review settings September 1, 2025 14:09
@StephaneDelcroix StephaneDelcroix requested a review from a team as a code owner September 1, 2025 14:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the ValueProvider creation in the XSG (XAML Source Generator) by correcting the parent-child relationship in service provider initialization. The key issue was that ValueProvider expects the first object to be the parent, not the caller, and this change also resolves issue #31381.

  • Removes conditional compilation directives from XAML unit tests that were gated behind FIXME_BEFORE_PUBLIC_RELEASE
  • Updates service provider creation to use parent objects instead of object-and-parents chain
  • Fixes the SimpleValueTargetProvider constructor call to pass this instead of false

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
OnPlatformOptimization.xaml.cs Removes conditional compilation directives from test method
OnPlatform.xaml.cs Removes conditional compilation directives from multiple test methods
Gh4319.xaml.cs Removes conditional compilation directives from test method
Gh3862.xaml.cs Removes conditional compilation directives from test method
ServiceProviderExtensions.cs Updates ValueProvider creation logic to use parent objects and fixes constructor parameters

@StephaneDelcroix StephaneDelcroix enabled auto-merge (squash) September 2, 2025 12:00
@StephaneDelcroix StephaneDelcroix merged commit 00bdac6 into net10.0 Sep 2, 2025
148 checks passed
@StephaneDelcroix StephaneDelcroix deleted the dev/stdelc/xsg/valueprovider branch September 2, 2025 12:08
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants