protected override float ComputeContentWidth() { UIImageElement imageElement = (UIImageElement)element; if (imageElement.texture != null) { return(imageElement.texture.width); } return(imageElement.Width); }
protected override float ComputeContentHeight() { UIImageElement imageElement = (UIImageElement)element; if (imageElement.texture != null) { return(imageElement.texture.height); } return(imageElement.Height); }