S
S
sanphir2017-10-20 16:17:56
Xamarin
sanphir, 2017-10-20 16:17:56

Is it possible to know the actual dimensions of an image in Xamarin.Forms.Image?

The page has an Image. Is there a way to find out the dimensions of a real image? Or at least the one that is displayed, in the sense that it is already scaled to the Aspect value.

<Image Grid.Row="1" Source="{Binding SelectedItem.MainImageSource}" Aspect="AspectFit" />

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wcoder, 2017-11-04
@wcoder

Or at least the one that is displayed, in the sense that it is already scaled to the Aspect value.

This can be found in the Width and Height properties of the Image element itself .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question