public ExerciseEditorWindow(ExerciseViewer viewer) { InitializeComponent(); Viewer = viewer; Editor = new ExerciseEditor(viewer); this.DataContext = Editor; }