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

Obsolete Compatibility.Layout #24342

Merged
merged 6 commits into from
Aug 24, 2024
Merged

Obsolete Compatibility.Layout #24342

merged 6 commits into from
Aug 24, 2024

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Aug 20, 2024

Description of Change

This PR finishes out obsoleting Compatibility Layout so that we can remove it from the hierarchy of a number of controls (ScrollView/Page/ContentPresenter,SwipeView, etc..) in NET10.

  • I've provided alternatives to all the public APIS that are exposed if users are overriding or casting to a Compatibility.Layout
  • I've added a public InvalidateMeasure method. I realize this is somewhat scary giving people the power to use these, but, these are somewhat necessary APIs for a number of scenarios. Especially iOS where invalidations don't propagate up the tree naturally. They are also useful for scenarios where users are doing custom layouts.
    • Alternative is that we just remove these and tell people ForceLayout is obsolete and they don't need to use it. I haven't generated the txt files for these yet until the team agrees

@PureWeen PureWeen requested a review from mattleibow August 20, 2024 21:04
@PureWeen PureWeen marked this pull request as ready for review August 22, 2024 14:32
@PureWeen PureWeen requested a review from a team as a code owner August 22, 2024 14:32
@PureWeen PureWeen added this to the 9.0-rc1 milestone Aug 24, 2024
@PureWeen PureWeen linked an issue Aug 24, 2024 that may be closed by this pull request
@mattleibow mattleibow merged commit c6cfbc7 into net9.0 Aug 24, 2024
117 checks passed
@mattleibow mattleibow deleted the obsolete_compat_layout branch August 24, 2024 12:10
@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
Status: Done
Development

Successfully merging this pull request may close these issues.

Obsolete Compatibility.Layout
4 participants