public override StorageMedia Clone() { var item = new StoragePhoto(File); item._thumbnail = _thumbnail; item._preview = _preview; return(item); }
public override StorageMedia Clone() { var item = new StoragePhoto(File, _basic, Properties); item._thumbnail = _thumbnail; item._preview = _preview; item._cropRectangle = _cropRectangle; return(item); }
public static async Task <StorageMedia> CreateAsync(StorageFile file, bool selected) { if (file.ContentType.Equals("video/mp4")) { return(await StorageVideo.CreateAsync(file, selected)); } else { return(await StoragePhoto.CreateAsync(file, selected)); } }