Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Image alignment within a view

$
0
0

HI,

I would like to have ability to align the image that has AspectFil/AspectFit within the imageview itself.
So that after AspectFill/AspectFit is executed there is possibility to align the image based on the left/right/top/bottom or combination of two.

For example this is original image:

If AspectFill is applied it will create an image that will be centered, so cropped on the sides

But i would like to have the option to define that it should also be aligned to right side

I understand that is should be done by using custom renderer for Image, but would appreciate hints how on iOS and Android image can be manipulated to achieve this.
Thanx,
D


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>