示例#1
0
        public static CachedImage Thumbnail(Uri source)
        {
            var thumbnail = new CachedImage
            {
                HeightRequest        = 32,
                WidthRequest         = 32,
                VerticalOptions      = LayoutOptions.Center,
                Source               = source,
                DownsampleToViewSize = true
            };

            return(thumbnail.Tee(t => t.Transformations.Add(new CircleTransformation())));
        }