RibbonMiniToolbar.Hiding Event

Occurs when the toolbar is about to be hidden.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v20.2.dll


public event CancelEventHandler Hiding
Public Event Hiding As CancelEventHandler

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.


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