示例#1
0
        protected override async Task <BitmapSource> GetThumbnail()
        {
            ThumbMaxHeight = 80;
            if (Item.IsFileShare)
            {
                var thumb = Utils.GetImageFromRessource("share.png");
                thumb.Freeze();
                return(thumb);
            }

            if (Item.IsNetwork())
            {
                return(Item.Details.Thumbnail);
            }

            if (IsPicture)
            {
                ThumbMaxHeight = 120;
            }

            return(await ThumbnailProvider.GetLargeThumbnailAsync(Item.Path).ConfigureAwait(false));
        }
示例#2
0
 protected override Task <BitmapSource> GetThumbnail()
 {
     return(ThumbnailProvider.GetLargeThumbnailAsync(Item?.AssemblyPath));
 }
示例#3
0
 protected override Task <BitmapSource> GetThumbnail()
 {
     return(ThumbnailProvider.GetLargeThumbnailAsync(Item.FileName));
 }