[iOS]Fix Page BackgroundImageSource scaling#27829
[iOS]Fix Page BackgroundImageSource scaling#27829bhavanesh2001 wants to merge 5 commits intodotnet:mainfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jsuarezruiz
left a comment
There was a problem hiding this comment.
This code changes the BackgroundImageSource behavior a little; and affects tests like ContentPageBackgroundImageSourceWorks.
Before was using a pattern (the red color indicates the pixels with changes).

Do you want to continue and update the test? Or, let me know to compare the behavior with other platforms and update it.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Will this fix be part of version 8.0 or 9.0? |
|
@jingo0 If this gets approved, it will likely not go into .NET 8 since .NET 8 will go out of support in a few months. |
a62180b to
cc200bc
Compare
8c3682f to
d5705c3
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
rmarinho
left a comment
There was a problem hiding this comment.
Seems it scales different from iOS and Catalyst no ?
I think the platform view’s If I set |
| { | ||
| Name = BackgroundLayerName, | ||
| Contents = backgroundImage.CGImage, | ||
| Frame = platformView.Frame, |
There was a problem hiding this comment.
There is no specification of how image should fit the layer. Can manage it using ContentsGravity and MasksToBounds properties.
mattleibow
left a comment
There was a problem hiding this comment.
Javier's comment on the gravity is correct. We probably need to see what the other platforms do, but we should match. They probably stretch to fill? Or center?
|
@mattleibow @jsuarezruiz I think we currently don't set gravity explicitly on any platform, so whatever the platform provides by default remains in effect (for now). |
|
|
2 similar comments
|
|
|
|
kubaflo
left a comment
There was a problem hiding this comment.
Could you please resolve conflicts?

Issues Fixed
Fixes #27438