GroupControl.HyperlinkClick Event
Occurs each time a user clicks a hyperlink within the control’s caption.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.Utils.v24.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
Event Data
The HyperlinkClick event's data class is HyperlinkClickEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Link | Get or sets the URL of the clicked hyperlink. |
MouseArgs | Gets or sets mouse coordinates calculated from the toolbar’s upper left corner. |
Text | Gets or sets the hyperlink alt text. Note that modifying this text does not change the item caption. |
Remarks
Handle the HyperlinkClick event to perform actions when a user clicks a hyperlink in the control’s caption.```
You can add a hyperlink to the GroupControl’s caption as follows:
- Set the GroupControl.AllowHtmlText property to true to enable HTML-inspired Text Formatting.
- Add a hyperlink to the control’s caption (GroupControl.Text) using the <href></href> tag.
Example
The following example adds a hyperlink to the GroupControl’s header and launches this link when a user clicks it.
groupControl1.AllowHtmlText = true;
groupControl1.Text = "Resources <href=www.devexpress.com>(help)</href>";
//...
private void groupControl1_HyperlinkClick(object sender, DevExpress.Utils.HyperlinkClickEventArgs e) {
System.Diagnostics.Process.Start(e.Link);
}
See Also