Skip to main content

XtraBaseArgs.ContentPadding Property

Gets or sets the distance between the dialog (message box) content and borders.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public Padding ContentPadding { get; set; }

Property Value

Type Description
Padding

The distance between borders and dialog (message box) content.

Remarks

For XtraMessageBox objects, in addition to this global content setting, you can also utilize other ...Padding properties that specify paddings of individual content blocks.

MessageBoxPaddings

XtraMessageBoxArgs args = new XtraMessageBoxArgs();
args.ButtonPadding = new Padding(30);
args.ContentPadding = new Padding(100);
args.DoNotShowAgainCheckBoxPadding = new Padding(30);
args.TextPadding = new Padding(30);
args.IconPadding = new Padding(30);

args.Icon = new Icon(@"D:\demoicon.ico");
args.Caption = "XtraMessageBox";
args.Text = "Do you really want to close the app?";
args.Buttons = new DialogResult[] { DialogResult.Yes, DialogResult.No };
args.DoNotShowAgainCheckBoxVisible = true;

XtraMessageBox.Show(args);
See Also