public ScheduleTaskView(TaskViewModel task) { InitializeComponent(); OrderDetailsView.propertyGrid.IsReadOnly = true; this.DataContext = task; task.BeginEdit(); task.IsEditorOpen = true; DataContextChanged += (s, e) => { this.TaskDetailsView.DataContext = this.DataContext; }; }