Back to Devexpress

XtraDialog.AllowCustomLookAndFeel Property

windowsforms-devexpress-dot-xtraeditors-dot-xtradialog-16841744.md

latest2.5 KB
Original Source

XtraDialog.AllowCustomLookAndFeel Property

Gets or sets whether a dialog is painted using its own look and feel settings, which are specified by the lookAndFeel parameter of specific XtraDialog.Show method overloads. This property is ignored if the lookAndFeel parameter is set to use a skinning paint scheme.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public static bool AllowCustomLookAndFeel { get; set; }
vb
Public Shared Property AllowCustomLookAndFeel As Boolean

Property Value

TypeDescription
Boolean

true , if the dialog is painted using its own look and feel settings; false , if the default look and feel settings are used.

|

Remarks

The code below illustrates how to force Dialogs to use a custom look and feel.

csharp
//configuring the UserLookAndFeel 
UserLookAndFeel lookAndFeelError = new UserLookAndFeel(this);
lookAndFeelError.SkinName = "MyCustomSkin";
lookAndFeelError.Style = LookAndFeelStyle.Skin;
lookAndFeelError.UseDefaultLookAndFeel = false;

// force Dialogs to use the "MyCustomSkin"
XtraDialog.AllowCustomLookAndFeel = true; 

// pass the UserLookAndFeel as a Parameter in the show method
XtraDialog.Show(lookAndFeelError, myControl);
vb
'configuring the UserLookAndFeel 
Dim lookAndFeelError As New UserLookAndFeel(Me)
lookAndFeelError.SkinName = "MyCustomSkin"
lookAndFeelError.Style = LookAndFeelStyle.Skin
lookAndFeelError.UseDefaultLookAndFeel = False

' force Dialogs to use the "MyCustomSkin"
XtraDialog.AllowCustomLookAndFeel = True

' pass the UserLookAndFeel as a Parameter in the show method
XtraDialog.Show(lookAndFeelError, myControl)

See Also

Show

XtraDialog Class

XtraDialog Members

DevExpress.XtraEditors Namespace