Back to Devexpress

RibbonMiniToolbar.Hiding Event

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribbonminitoolbar-6a751060.md

latest2.6 KB
Original Source

RibbonMiniToolbar.Hiding Event

Occurs when the toolbar is about to be hidden.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event CancelEventHandler Hiding
vb
<DXCategory("Events")>
Public Event Hiding As CancelEventHandler

Event Data

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

PropertyDescription
CancelGets 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

OpacityDistance

TransparencyDistance

RibbonMiniToolbar Class

RibbonMiniToolbar Members

DevExpress.XtraBars.Ribbon Namespace