Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Collapse]Data Editors
    Included Components
   [Expand]Implementation Details
   [Expand]Getting Started
   [Collapse]Editor Types
     BarCodeEdit
     BrushEdit
     ButtonEdit
     Calculator
     CheckEdit
     ColorEdit
     ComboBoxEdit
     DateNavigator
     DateEdit
     DropDownButton
     FlyoutControl
     FontEdit
     HyperlinkEdit
     ImageEdit
     ListBoxEdit
     LookUpEdit
     MemoEdit
     PasswordBoxEdit
     PopupBrushEdit
     PopupCalcEdit
     PopupColorEdit
     PopupImageEdit
     ProgressBarEdit
     RangeControl
     RatingEdit
     SparklineEdit
     SpinEdit
     SimpleButton
     SplitButton
     TextEdit
     ToggleSwitchEdit
     Token Editors
     TrackBarEdit
   [Expand]Common Features
   [Expand]Range Control
   [Expand]Visual Elements
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Diagram Control
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

HyperlinkEdit

The HyperlinkEdit editor presents its content as a hyperlink. The text displayed in the edit box is underlined. When you activate the hyperlink functionality, the editor executes the command specified by the EditValue property.

The command in the EditValue property can represent any valid command recognized by the system. For instance, the EditValue can specify:

  • a URL to open in the default browser ("www.devexpress.com")
  • a "mailto:" command that activates the default mail client ("mailto:support@devexpress.com")
  • a path to a file or directory to open ("c:\Program Files", "\\Server\Public\setup.exe")

The hyperlink editor provides a HyperlinkEdit.RequestNavigation event to control hyperlink execution. Using this event, you can perform an action not recognized by the system, modify the command to execute, etc. For instance, if the hyperlink editor contains an e-mail without the "mailto:" prefix, the default hyperlink processing will do nothing. However, you can handle the HyperlinkEdit.RequestNavigation event in order to make up a valid command by adding a "mailto:" prefix.

The code sample below demonstrates how to add the "mailto:" prefix for the hyperlink editor's displayed text (to enable opening a mail client).

Is this topic helpful?​​​​​​​