public RestartPanel() : base(2, 3, false) { RowSpacing = 6; ColumnSpacing = 6; var btnRestart = new Button() { Label = GettextCatalog.GetString("Restart {0}", BrandingService.ApplicationName), CanFocus = true, UseUnderline = true }; Attach(btnRestart, 1, 2, 1, 2, AttachOptions.Fill, AttachOptions.Fill, 0, 0); var imageRestart = new ImageView("md-information", IconSize.Menu); Attach(imageRestart, 0, 1, 0, 1, AttachOptions.Fill, AttachOptions.Fill, 0, 0); var labelRestart = new Label(GettextCatalog.GetString("These preferences will take effect next time you start {0}", BrandingService.ApplicationName)); Attach(labelRestart, 1, 3, 0, 1, AttachOptions.Fill, AttachOptions.Fill, 0, 0); imageRestart.SetCommonAccessibilityAttributes("IDEStyleOptionsPanel.RestartImage", "", GettextCatalog.GetString("A restart is required before these changes take effect")); imageRestart.SetAccessibilityLabelRelationship(labelRestart); btnRestart.Clicked += (sender, e) => { RestartRequested?.Invoke(this, EventArgs.Empty); }; }