internal async void LoadPath(string p) { //get the metadata var metadata = await App.DropNetClient.GetMetaData(p); //now load the viewmodel with it MetaData = metadata; Contents = metadata.Contents.ToObservableCollection(); SelectedMeta = null; }
/// <summary> /// Gets the thumbnail of an image given its MetaData /// </summary> /// <param name="file"></param> /// <param name="size"></param> /// <returns></returns> public async Task<byte[]> GetThumbnail(MetaData file, ThumbnailSize size) { return await GetThumbnail(file.Path, size); }
/// <summary> /// Gets the thumbnail of an image given its MetaData /// </summary> /// <param name="file"></param> /// <returns></returns> public async Task<byte[]> GetThumbnail(MetaData file) { return await GetThumbnail(file.Path, ThumbnailSize.Small); }