Beispiel #1
0
 void UpdateAspect()
 {
     if (Element == null || Control == null || Control.IsDisposed())
     {
         return;
     }
     AImageView.ScaleType type = Element.Aspect.ToScaleType();
     Control.SetScaleType(type);
 }
Beispiel #2
0
        void UpdateAspect()
        {
            AImageView.ScaleType type = AImageView.ScaleType.CenterCrop;

            switch (Element.Aspect)
            {
            case Aspect.AspectFit:
                type = AImageView.ScaleType.FitCenter;
                break;

            case Aspect.AspectFill:
                type = AImageView.ScaleType.CenterCrop;
                break;

            case Aspect.Fill:
                type = AImageView.ScaleType.FitXy;
                break;

            default:
                break;
            }
            Control.SetScaleType(type);
        }
 void UpdateAspect()
 {
     AImageView.ScaleType type = Element.Aspect.ToScaleType();
     Control.SetScaleType(type);
 }