Beispiel #1
0
        public async Task FetchProperties()
        {
            var properties = await StorageItem.GetBasicPropertiesAsync();

            DateModified = properties.DateModified.ToString();
            Size         = properties.Size;
            if (IsFile)
            {
                var storageFile = StorageItem as StorageFile;
                var fileType    = storageFile.FileType.ToLower();
                Debug.WriteLine(fileType);
                if (ImageFileTypes.Contains(fileType))
                {
                    Thumbnail = await storageFile.GetThumbnailAsync(ThumbnailMode.PicturesView, 110, ThumbnailOptions.UseCurrentScale);
                }
            }
        }