public StorageEntry(StorageFile file, StorageEntryUsage usage) { this.EntryType = StorageEntryType.File; this.ContentType = SEContentAgency.AnyalizeStorageEntryContent(file); this._storageItem = file; this.LoadThumbnail(usage); }
// Constructor public StorageEntry(StorageFolder folder, StorageEntryUsage usage) { this.EntryType = StorageEntryType.Folder; this.ContentType = SEContent.Folder; this._storageItem = folder; this.LoadThumbnail(usage); }
public static Uri GetDefaultPreviewUri(SEContent contentType) { switch (contentType) { case SEContent.Image: return(new Uri("ms-appx:///Assets/THUMB/Photo_Medium.png")); default: return(new Uri("ms-appx:///Assets/THUMB/Folder_Medium.png")); } }
public static Uri GetDefaultThumbnailUri(SEContent contentType) { switch (contentType) { case SEContent.Image: return(new Uri("ms-appx:///Assets/THUMB/Photo_Small.png")); default: return(new Uri("ms-appx:///Assets/THUMB/File_Small.png")); } }
public StorageEntry(IStorageItem item, StorageEntryUsage usage) { if (item is StorageFile file) { this.EntryType = StorageEntryType.File; this.ContentType = SEContentAgency.AnyalizeStorageEntryContent(file); this._storageItem = item; this.LoadThumbnail(usage); } else { this.EntryType = StorageEntryType.Folder; this.ContentType = SEContent.Folder; this._storageItem = item; this.LoadThumbnail(usage); } }