Example #1
0
 public StorageEntry(StorageFile file, StorageEntryUsage usage)
 {
     this.EntryType    = StorageEntryType.File;
     this.ContentType  = SEContentAgency.AnyalizeStorageEntryContent(file);
     this._storageItem = file;
     this.LoadThumbnail(usage);
 }
Example #2
0
 // Constructor
 public StorageEntry(StorageFolder folder, StorageEntryUsage usage)
 {
     this.EntryType    = StorageEntryType.Folder;
     this.ContentType  = SEContent.Folder;
     this._storageItem = folder;
     this.LoadThumbnail(usage);
 }
Example #3
0
        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"));
            }
        }
Example #4
0
        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"));
            }
        }
Example #5
0
 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);
     }
 }