void NewListChildWindow_Loaded(object sender, RoutedEventArgs e) { this.DataContext = list; NameTextBox.IsReadOnly = !NewList; }