Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WindowsFormsSettings.PopupShadowStyle Property

Specifies the shadow style applied to all popup menus in this application.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

public static PopupShadowStyle PopupShadowStyle { get; set; }

#Property Value

Type Description
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.

    PopupShadowStyle - Standard

  • Office2016 - Microsoft Office-inspired shadows that imitate soft shadows from a dispersive light source.

    PopupShadowStyle - Office2016

  • 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.

using DevExpress.XtraEditors;

static void Main() {
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    WindowsFormsSettings.PopupShadowStyle = PopupShadowStyle.Standard;
    Application.Run(new Form1());
}
See Also