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

[X] Process ContentProperty before Add() #6982

Merged
merged 1 commit into from
May 10, 2022
Merged

[X] Process ContentProperty before Add() #6982

merged 1 commit into from
May 10, 2022

Conversation

StephaneDelcroix
Copy link
Contributor

Description of Change

We added IEnumerable interface, and Add() methods, to Layouts in MAUI.
As the XAML inflaters were trying to Add() before looking for a
ContentProperty,
1/ ContentProperty on Layout (like Grid) is completely ignored (but
layouts works nonetheless, because of belt and suspenders).
2/ overriding the ContentProperty is ignored (as found in #6944)

This PR changes the order of Add() and ContentProperty processing, and
restore the expected behavior, without breaking any other unit test.

Issues Fixed

@StephaneDelcroix StephaneDelcroix requested a review from hartez May 10, 2022 09:02
We added IEnumerable interface, and Add() methods, to Layouts in MAUI.
As the XAML inflaters were trying to Add() before looking for a
ContentProperty,
 1/ ContentProperty on Layout (like Grid) is completely ignored (but
layouts works nonetheless, because of belt and suspenders).
 2/ overriding the ContentProperty is ignored (as found in #6944)

This PR changes the order of Add() and ContentProperty processing, and
restore the expected behavior, without breaking any other unit test.

- fixes #6944
@jsuarezruiz jsuarezruiz added area-xaml XAML, CSS, Triggers, Behaviors area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter labels May 10, 2022
@mattleibow mattleibow added this to the 6.0.300 milestone May 10, 2022
Copy link
Member

@mattleibow mattleibow left a comment

Choose a reason for hiding this comment

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

Looks good. Gonna let EZ make the final green and merge.

@Redth Redth merged commit 1c7931a into main May 10, 2022
@Redth Redth deleted the fix_6944 branch May 10, 2022 18:43
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
@samhouts samhouts added the fixed-in-6.0.312 Look for this fix in 6.0.312! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter area-xaml XAML, CSS, Triggers, Behaviors fixed-in-6.0.312 Look for this fix in 6.0.312!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ContentProperty] ignored on Layouts
6 participants