windowsforms-devexpress-dot-xtraeditors-dot-windowsformssettings-976e2f2e.md
Specifies the shadow style applied to all popup menus in this application.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public static PopupShadowStyle PopupShadowStyle { get; set; }
Public Shared Property PopupShadowStyle As PopupShadowStyle
| Type | Description |
|---|---|
| DevExpress.XtraEditors.PopupShadowStyle |
A DevExpress.XtraEditors.PopupShadowStyle enumerator value that specifies the shadow style applied to all popup menus in this application.
|
The PopupShadowStyle property allows you to specify the following shadow styles:
Standard - strong shadows painted in diagonal direction from upper left to bottom right.
Office2016 - Microsoft Office-inspired shadows that imitate soft shadows from a dispersive light source.
Default - a popup shadow style is managed by the currently applied skin.
Use the WindowsFormsSettings.PopupAnimation property to customize the animation effects for all popup menus in the application.
The following code applies the Standard shadow style to all popup menus in the application.
using DevExpress.XtraEditors;
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
WindowsFormsSettings.PopupShadowStyle = PopupShadowStyle.Standard;
Application.Run(new Form1());
}
Imports DevExpress.XtraEditors
Shared Sub Main()
Application.EnableVisualStyles()
Application.SetCompatibleTextRenderingDefault(False)
WindowsFormsSettings.PopupShadowStyle = PopupShadowStyle.Standard
Application.Run(New Form1())
End Sub
See Also