Control KitchenSink() { var control = new Button { Text = "Kitchen Sink && Maximized" }; control.Click += delegate { var dialog = new Dialog(); #if DESKTOP dialog.State = WindowState.Maximized; dialog.Resizable = true; #endif dialog.Title = "Kitchen Sink Dialog"; dialog.AddDockedControl(new Controls.KitchenSinkSection()); dialog.ShowDialog(this); }; return(control); }