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