I need to get the actual size of the image in my button renderer class. I need to get it in the OnElementChanged
method from the variable e.NewElement
.
I have tried to get it from e.NewElement.ImageSource
, but it does not have a property width or size. If I debug it, the size is shown.
protected override void OnElementChanged(ElementChangedEventArgs<Button> e)
{
base.OnElementChanged(e);
//How to get width here from e ?
}