// Drag and drop file execution private void Grid_Drop(object sender, System.Windows.DragEventArgs e) { string[] FileList = (string[])e.Data.GetData(System.Windows.DataFormats.FileDrop, false); myElement.Source = new System.Uri(FileList[0]); PlayerListViewModel.GetFilesInfo(FileList); myElement.Play(); }
private void Grid_Drop(object sender, System.Windows.DragEventArgs e) { ApplicationWindowViewModel.GoToPage("Player"); string[] FileName = (string[])e.Data.GetData(DataFormats.FileDrop, false); VideoDisplay.myElement.Source = new System.Uri(FileName[0]); PlayerListViewModel.GetFilesInfo(FileName); VideoDisplay.myElement.Play(); }