DevExpress-Examples / xaf-how-to-show-a-hyper-link-url-email-etc-for-a-business-class-property

Displays custom Property Editors for WinForms and Blazor platforms that render object fields containing an email address or URL as clickable text in the UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XAF - How to show a hyper link (URL, email, etc.) for a business class property

This example shows custom Property Editors that provide access to object fields with an email address or URL as clickable text.

To validate a URL, these editors use a combined RexEx mask. The default regular expression is:

(((http|https|ftp)\://)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*)|([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})

You can use it as is or modify it per your specific needs. Search for Regular Expression in MSDN for more information on how to do this. A double click opens a URL in DetailView of the WinForms project for end-user convenience.

These editors are created for learning purposes only. You can extend them or create your own editors to meet your business needs.

image

Files to Review

Documentation

More Examples

About

Displays custom Property Editors for WinForms and Blazor platforms that render object fields containing an email address or URL as clickable text in the UI

License:Other


Languages

Language:C# 73.6%Language:HTML 25.8%Language:Batchfile 0.6%