Ejemplo n.º 1
0
        protected override float ComputeContentWidth()
        {
            UIImageElement imageElement = (UIImageElement)element;

            if (imageElement.texture != null)
            {
                return(imageElement.texture.width);
            }

            return(imageElement.Width);
        }
Ejemplo n.º 2
0
        protected override float ComputeContentHeight()
        {
            UIImageElement imageElement = (UIImageElement)element;

            if (imageElement.texture != null)
            {
                return(imageElement.texture.height);
            }

            return(imageElement.Height);
        }