Back to Devexpress

WindowsFormsSettings.PopupShadowStyle Property

windowsforms-devexpress-dot-xtraeditors-dot-windowsformssettings-976e2f2e.md

latest2.7 KB
Original Source

WindowsFormsSettings.PopupShadowStyle Property

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

Declaration

csharp
public static PopupShadowStyle PopupShadowStyle { get; set; }
vb
Public Shared Property PopupShadowStyle As PopupShadowStyle

Property Value

TypeDescription
DevExpress.XtraEditors.PopupShadowStyle

A DevExpress.XtraEditors.PopupShadowStyle enumerator value that specifies the shadow style applied to all popup menus in this application.

|

Remarks

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.

Example

The following code applies the Standard shadow style to all popup menus in the application.

csharp
using DevExpress.XtraEditors;

static void Main() {
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    WindowsFormsSettings.PopupShadowStyle = PopupShadowStyle.Standard;
    Application.Run(new Form1());
}
vb
Imports DevExpress.XtraEditors

Shared Sub Main()
    Application.EnableVisualStyles()
    Application.SetCompatibleTextRenderingDefault(False)
    WindowsFormsSettings.PopupShadowStyle = PopupShadowStyle.Standard
    Application.Run(New Form1())
End Sub

See Also

PopupAnimation

WindowsFormsSettings Class

WindowsFormsSettings Members

DevExpress.XtraEditors Namespace