windowsforms-devexpress-dot-xtraeditors-dot-xtramessageboxargs-b7e492b2.md
Gets or sets whether message boxes that utilize this XtraMessageBoxArgs object should retrieve content paddings from the current DevExpress skin.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public DefaultBoolean UseSkinPaddings { get; set; }
Public Property UseSkinPaddings As DefaultBoolean
| Type | Description |
|---|---|
| DefaultBoolean |
Specifies whether to retrieve message box paddings from skins. The Default value means the behavior is inherited from the global XtraMessageBox.UseSkinPaddings property.
|
Available values:
| Name | Description | Return Value |
|---|---|---|
| True |
The value is true.
|
0
| | False |
The value is false.
|
1
| | Default |
The value is specified by a global option or a higher-level object.
|
2
|
DevExpress skins store element paddings that increase the empty area around message box content blocks.
To disable skin paddings or modify padding values, do one of the following.
csharpXtraMessageBox.UseSkinPaddings = false;vbXtraMessageBox.UseSkinPaddings = False
XtraMessageBoxArgs.UseSkinPaddings property (affects message boxes that use this XtraMessageBoxArgs object).csharpXtraMessageBoxArgs args = new XtraMessageBoxArgs(); args.UseSkinPaddings = false; XtraMessageBox.Show(args);vbDim args As New XtraMessageBoxArgs() args.UseSkinPaddings = False XtraMessageBox.Show(args)
...Padding properties of the XtraMessageBoxArgs object to set up custom padding sizes for individual content blocks.csharpXtraMessageBoxArgs 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);vbDim args As 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