public DataEditor GetDataEditorForFile(ProjectFile file) { var vm = new DataEditor_ViewModel(this, file); var win = new DataEditor(vm); return(win); }
public DataEditor(DataEditor_ViewModel vm) { DataContext = vm; InitializeComponent(); vm.TreeView = treeview; }