In AvatarView, add support for Aspect (as in the previous Xamarin version) #2826
solomonfried
started this conversation in
New Feature Discussions
Replies: 1 comment
-
I'm not sure what you mean? Currently the Aspect is set to fill automatically. In the sample you can see that we have a square image and it's displayed in a round avatar. From the Samples app: This is the original image: https://aka.ms/campus.jpg WHich you can see is not just square, but rectangular, and we "FIT" it in: Please give an example of what the issue is, and another example of what you expect. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the Xamarin version of AvatarView, there was an Aspect property. When set to "Fill" a square image placed in a round avatar, would not show any gaps. There is no clean way to avoid gaps now aside from setting the Padding to some negative value, which will vary depending on screen densities.
The Aspect would just pass through and set the Aspect on the Image contained within the AvatarView.
Benefits:
This was once raised but did not get enough votes to be considered. Hopefully, with more MAUI developers it will get noticed.
Beta Was this translation helpful? Give feedback.
All reactions