-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
There was a problem hiding this 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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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);
/cc @eerhardt |
Seems ok to me, mostly additive and recompiles but not renames of existing 👍 |
src/Controls/tests/Xaml.UnitTests/DefinitionCollectionTests.xaml.cs
Outdated
Show resolved
Hide resolved
src/Controls/src/Build.Tasks/CompiledConverters/ColumnDefinitionCollectionTypeConverter.cs
Outdated
Show resolved
Hide resolved
src/Controls/src/Build.Tasks/CompiledConverters/ColumnDefinitionCollectionTypeConverter.cs
Show resolved
Hide resolved
Co-authored-by: Eric Erhardt <[email protected]>
…ml.cs Co-authored-by: Eric Erhardt <[email protected]>
69bd31b
to
1283d58
Compare
1283d58
to
5cacb5e
Compare
There was a problem hiding this 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.
Description of Change
Issues Fixed
Fixes #