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] compile gridlength and row|defcollection #5489

Merged
merged 5 commits into from
Mar 24, 2022
Merged

[X] compile gridlength and row|defcollection #5489

merged 5 commits into from
Mar 24, 2022

Conversation

StephaneDelcroix
Copy link
Contributor

Copy link
Contributor Author

@StephaneDelcroix StephaneDelcroix left a comment

Choose a reason for hiding this comment

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

added comments on API changes

{
get { return new GridLength(1, GridUnitType.Auto); }
}
public static readonly GridLength Auto = new GridLength(1, GridUnitType.Auto);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actual breaking change, from static property to static field, require recompile

Copy link
Member

Choose a reason for hiding this comment

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

If we didn't want to make a breaking change here, we could accomplish the same thing by using a property with an initializer:

public static GridLength Auto { get; } = new GridLength(1, GridUnitType.Auto);

@StephaneDelcroix
Copy link
Contributor Author

/cc @eerhardt

@Redth
Copy link
Member

Redth commented Mar 22, 2022

Seems ok to me, mostly additive and recompiles but not renames of existing 👍

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Mar 22, 2022
Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

LGTM.

You may want to consider #5489 (comment). Typically we use properties instead of fields in public APIs.

@Redth Redth merged commit 1dfc5a5 into main Mar 24, 2022
@Redth Redth deleted the fix_5430 branch March 24, 2022 16:23
@Redth Redth added this to the 6.0.300-rc.1 milestone Mar 24, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
@samhouts samhouts added the fixed-in-6.0.300-rc.1 Look for this fix in 6.0.300-rc.1! 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 fixed-in-6.0.300-rc.1 Look for this fix in 6.0.300-rc.1!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XamlC should compile RowDefinition and ColumnDefinition CollectionTypeConverters
5 participants