public void SetContent(Gtk.Widget w) { ContentAlignment.Add(w); if (string.IsNullOrEmpty(title)) { ContentAlignment.TopPadding = Styles.WelcomeScreen.Pad.Padding; root.Add(ContentAlignment); return; } var box = new VBox(); label = new Label() { Markup = string.Format(headerFormat, title), Xalign = (uint)0 }; TitleAlignment.Add(label); box.PackStart(TitleAlignment, false, false, 0); box.PackStart(ContentAlignment, false, false, 0); root.Add(box); }