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

RibbonMiniToolbar.Hiding Event

Occurs when the toolbar is about to be hidden.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event CancelEventHandler Hiding

#Event Data

The Hiding event's data class is CancelEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled.

#Remarks

The toolbar’s visibility depends on the distance from the mouse cursor to the toolbar (see the RibbonMiniToolbarOpacityOptions.OpacityDistance topic). When the distance is greater than the RibbonMiniToolbarOpacityOptions.TransparencyDistance value, the toolbar becomes hidden and closed. You can use the Hiding event to prevent the toolbar from being closed.

If the Cancel parameter is set to true, the toolbar is hidden, but not closed. When you move the mouse back to the toolbar, the toolbar becomes visible again. If the Cancel parameter is left set to false, the toolbar is hidden and closed. You can display the toolbar again by calling the RibbonMiniToolbar.Show method.

See Also