Silverlight Tips provides simple and useful tutorials and tips with real life examples, live demos and sample codes to download.
About authors:
Damon Serji
Damon Serji,
Silverlight developer working at Metia in London.
Gavin Wignall
Gavin Wignall,
Interactive Design Lead, working in design for over 10 years, the last 3 being in Silverlight.
Allan Muller
Allan Muller,
Developer, working on various types of Silverlight and WCF projects.
Recent posts
Twitter RSS
Recent comments

How to programmatically add a 'mailto' link in silverlight:

Add the below line to your .xaml.cs file to open mailto (email link) when an event gets fired (i.e. HyperlinkButton is clicked or etc):

HtmlPage.Window.Navigate(new Uri("mailto:tips@silverlighttips.com"));

if HtmlPage is not recognised in your Visual Studio, it is because you are missing an assemblly reference, so simply add this reference to the very top of your page:

using System.Windows.Browser;

Posted by Damon Serji on 24. August 2009 16:44 under: Basic
 with 3 Comments

Comments

BigDubb:

One thing I'd like to add on this topic. When utilizing mailto with deep linking...  

replace the # with %23

Posted 9/3/2009 2:33:57 PM

Damon:

Thanks for your comment BigDubb, the RSS link (http://silverlighttips.com/syndication.axd) is under search box in Syndication section. I am in process of updating layout of the site, hopefully it will make features such as RSS clearer then.

Posted 10/25/2009 5:31:01 AM

Pingback from silverlightweb.com.cn

Adding ‘mailto’ link Silverlight Web

Posted 12/10/2009 7:57:13 PM

Add comment


(Will show your Gravatar icon)

biuquote
  • Comment
  • Preview