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

[Binding SG] Use Binding.Create internally in MAUI #23722

Merged
merged 7 commits into from
Aug 13, 2024

Conversation

simonrozsival
Copy link
Member

@simonrozsival simonrozsival commented Jul 19, 2024

Description of Change

This PR fixes several oversights in the initial PR that introduced the Binding.Create method (#23239) that I found while dogfooding the new API:

  • Fixes incorrect signature of the generated method (must return BindingBase)
  • Moves the method from Binding to BindingBase. This is necessary to avoid trim analyzer warnings, the [UnconditionalSuppressMessage] didn't work the way I originally thought it would. It is still possible to call Binding.Create(...) and this call will be intercepted.

Besides the fixes, I replaces all the usages of TypedBinding.ForSingleNestingLevel that aren't used alongside SetBinding with the new API. The ForSingleNestingLevel method will be completely removed in a later PR.

Issues Fixed

Contributes to #22384
Depends on #23393 - needs rebasing after this PR is merged

@simonrozsival simonrozsival force-pushed the use-binding-create-in-product branch 3 times, most recently from bbf57d9 to cb80c71 Compare July 23, 2024 18:09
@simonrozsival simonrozsival marked this pull request as ready for review July 23, 2024 18:11
@simonrozsival simonrozsival requested a review from a team as a code owner July 23, 2024 18:11
jkurdek
jkurdek previously approved these changes Jul 24, 2024
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

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

This looks good to me, but I reran some tests to see if we could get a greener CI run.

@simonrozsival simonrozsival enabled auto-merge (squash) July 24, 2024 16:22
@rmarinho rmarinho dismissed stale reviews from jonathanpeppers and jkurdek via 628e441 July 26, 2024 11:21
@simonrozsival simonrozsival force-pushed the use-binding-create-in-product branch from 628e441 to d34016e Compare August 12, 2024 16:17
@simonrozsival
Copy link
Member Author

@rmarinho @jonathanpeppers @PureWeen the failing tests are unrelated to this PR. Could we merge this PR now?

@rmarinho rmarinho disabled auto-merge August 13, 2024 11:19
@rmarinho rmarinho merged commit b787222 into dotnet:net9.0 Aug 13, 2024
115 of 117 checks passed
@samhouts samhouts added the fixed-in-net9.0-nightly This may be available in a nightly release! label Aug 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2024
@samhouts samhouts added the fixed-in-net8.0-nightly This may be available in a nightly release! label Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-net8.0-nightly This may be available in a nightly release! fixed-in-net9.0-nightly This may be available in a nightly release!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants