Back to Devexpress

AppMenuFileLabel.LabelImageClick Event

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-appmenufilelabel-4c6cd225.md

latest2.7 KB
Original Source

AppMenuFileLabel.LabelImageClick Event

Fires when the label’s image/selected image is clicked.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Event Data

The LabelImageClick 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

A check button is displayed at the label’s right edge, provided that the AppMenuFileLabel.ShowCheckButton property is enabled.

Use the AppMenuFileLabel.ImageOptionsCollection property to specify state images.

When the check button is clicked, the LabelImageClick event fires. You can set the event’s Cancel parameter to true to prevent follow-up actions. If the Cancel parameter is left set to false , the check button’s state is toggled and the notification AppMenuFileLabel.CheckedChanged event fires. You can handle this event to respond to checking/unchecking the button.

See Also

ShowCheckButton

ImageOptionsCollection

Checked

CheckedChanged

AppMenuFileLabel Class

AppMenuFileLabel Members

DevExpress.XtraBars.Ribbon Namespace