private void Editor_DataContextChanged(object sender, EventArgs e) { editorVm = editor.DataContext as EditorViewModel; }