public void NewList(object sender, RoutedEventArgs args) { Background = new SolidColorBrush(Color.FromRgb(0, 200, 200)); label = new TextBox(); label.FontFamily = font; container = new ListContainer(); label.Text = "NewToDoList"; label.Background = new SolidColorBrush(Color.FromRgb(0, 200, 200)); label.BorderThickness = new Thickness(0); AllowDrop = true; button_add = new Button(); button_add.HorizontalAlignment = HorizontalAlignment.Stretch; button_add.VerticalAlignment = VerticalAlignment.Bottom; button_add.BorderThickness = new Thickness(0); button_add.Background = new SolidColorBrush(accent); button_add.Content = "Add"; button_add.Click += b_Add; button_add.FontFamily = font; GridContent.Height = container.Height; GridContent.Children.Add(label); GridContent.Children.Add(container); GridContent.Children.Add(button_add); GridContent.UpdateLayout(); ThemeManager_IsThemeChanged(null, null); }