Occurs when the toolbar is about to be hidden.
NuGet Package: DevExpress.Win.Navigation
[DXCategory("Events")] public event CancelEventHandler Hiding
<DXCategory("Events")> Public Event Hiding As CancelEventHandler
The Hiding event's data class is CancelEventArgs. The following properties provide information specific to this event:
|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.