/// <summary> /// Constructor with the session to wich the materials are going to be uploaded /// </summary> /// <param name="selectedSession"></param> public VMaterialUpload(Session selectedSession) { InitializeComponent(); this.selectedSession = selectedSession; (this.DataContext as UploadMaterialViewModel).CurrentSession = selectedSession; }