RibbonControl.HyperlinkClick Event

Occurs when a hyperlink within the current RibbonControl is clicked.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v20.2.dll


public event HyperlinkClickEventHandler HyperlinkClick
Public Event HyperlinkClick As HyperlinkClickEventHandler

Event Data

The HyperlinkClick event's data class is DevExpress.Utils.HyperlinkClickEventArgs.


BarItems, displayed within a RibbonControl, can display hyperlinks within their BarItem.Captions and/or BarItem.Descriptions. Set the RibbonControl.AllowHtmlText property to true and format the desired string via the <href></href> tag. Refer to the HTML Text Formatting topic to learn more.

public Form1() {
    ribbonControl1.AllowHtmlText = true;
    barStaticItem1.Caption = "Visit our <href=www.devexpress.com>Web-site</href>";

private void barStaticItem1_HyperlinkClick(object sender, DevExpress.Utils.HyperlinkClickEventArgs e) {

You can override the global RibbonControl.AllowHtmlText property setting for individual items. To do so, use the BarItem.AllowHtmlText property.

See Also