private void AtualizarImagemVideo() { var t1 = Task.Run(async() => { while (true) { StorageFolder folder_imagens = KnownFolders.PicturesLibrary; folder_imagens = await folder_imagens.GetFolderAsync("RALIBRARY"); GetImagens(folder_imagens); FileControl fileControl = new FileControl(); VideoControl videoControl = new VideoControl(); videos.Clear(); duracao.Clear(); videos = await fileControl.GetDiskFileAsync(KnownFolders.VideosLibrary); foreach (StorageFile vid in videos) { duracao.Add(await videoControl.getDurationVideoAsync(vid)); } await Task.Delay(10000); } }); }