Back to Devexpress

PopupMenuShowingEventArgs.RestoreMenu Property

windowsforms-devexpress-dot-xtraeditors-dot-filtering-dot-popupmenushowingeventargs-bc2d008c.md

latest1.8 KB
Original Source

PopupMenuShowingEventArgs.RestoreMenu Property

Gets or sets whether the current menu should be restored to its default state, after it has been displayed on-screen.

Namespace : DevExpress.XtraEditors.Filtering

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool RestoreMenu { get; set; }
vb
Public Property RestoreMenu As Boolean

Property Value

TypeDescription
Boolean

A Boolean value that specifies whether the current menu should be restored to its default state after it has been displayed on-screen.

|

Remarks

You can handle the FilterControl.PopupMenuShowing, to add custom items to menus. By default, items added are not automatically removed from a menu after it has been displayed. To remove items, you can set the RestoreMenu property to true. In this instance, the menu will be reset to its default state after it has been displayed.

See Also

PopupMenuShowingEventArgs Class

PopupMenuShowingEventArgs Members

DevExpress.XtraEditors.Filtering Namespace