Back to Devexpress

WindowsFormsSettings.DisableWindowShadows() Method

windowsforms-devexpress-dot-xtraeditors-dot-windowsformssettings-00b9b952.md

latest2.0 KB
Original Source

WindowsFormsSettings.DisableWindowShadows() Method

Disables window shadows for XtraForm, XtraMessageBox, and XtraDialog.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public static void DisableWindowShadows()
vb
Public Shared Sub DisableWindowShadows

Remarks

If you need to disable window shadows in an application, call the DisableWindowShadows method on startup.

The image below shows an XtraMessageBox before and after the DisableWindowShadows() was called.

This method is called automatically when you enable the Remote Connection Optimization mode. To re-enable window shadows, call the WindowsFormsSettings.EnableWindowShadows() method.

See Also

WindowsFormsSettings Class

WindowsFormsSettings Members

DevExpress.XtraEditors Namespace