Skip to main content
A newer version of this page is available. .
Bar

BarManager.HyperlinkClick Event

Occurs each time an end-user clicks a hyperlink within the BarManager control.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[DXCategory("Click")]
public event HyperlinkClickEventHandler HyperlinkClick

Event Data

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

Remarks

You can place a hyperlink within a BarStaticItem or a BarButtonItem. To do so, allow text formatting via HTML tags (set the BarManager.AllowHtmlText property to true) and use the <href></href> tag for the item’s caption.


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

private void barManager1_HyperlinkClick(object sender, DevExpress.Utils.HyperlinkClickEventArgs e) {
    System.Diagnostics.Process.Start(e.Link);
}

See the HTML Text Formatting topic for the list of all available HTML tags.

You can also handle the BarItem.HyperlinkClick event for individual bar items.

Clicking HyperLinkEdit items does not fire the HyperlinkClick event.

See Also