public UploadView(string token, string directory) { ViewModel = new UploadViewViewModel(); DataContext = ViewModel; ViewModel.Token = token; InitializeComponent(); Run(directory); }
public UploadVideo(UploadViewViewModel vm) { InitializeComponent(); BindingContext = vm; }