Skip to main content

Microsoft Silverlight

Answered Question howto launch mailto hyperlink without the xtra windowRSS Feed

(0)

sbrownell
sbrownell

Member

Member

3 points

5 Posts

howto launch mailto hyperlink without the xtra window

Hello,

I have a hyperlink button on my main page as follows:

<HyperlinkButton x:Name="lnkWebmaster" Content="Contact the Webmaster" NavigateUri="mailto:webmaster@mydomain.com" HorizontalAlignment="left" Canvas.Left="8" Canvas.Top="14" Foreground="#FFE2C391" />

However, when I execute this code I get an extra blank browser window along with my local email window.  Does anyone no how to do this without the extra browser window poping up?

Thanks.

meidianto
meidianto

Member

Member

583 points

124 Posts

Re: howto launch mailto hyperlink without the xtra window

Do it like this:

<HyperlinkButton x:Name="lnkWebmaster" 
Content="Contact the Webmaster"
HorizontalAlignment="left"
Canvas.Left="8"
Canvas.Top="14"
Foreground="#FFE2C391"
TargetName="_self" />

Please "Mark as Answer" if this post answers your question.

Ferry Meidianto
www.meidianto.com

FuryDiamond
FuryDiamond

Contributor

Contributor

3870 points

766 Posts

Answered Question

Re: howto launch mailto hyperlink without the xtra window

You can set the TargetName="_self"

Please "Mark as Answer" if this post answered your question. :)

sbrownell
sbrownell

Member

Member

3 points

5 Posts

Re: howto launch mailto hyperlink without the xtra window

TargetName="_self"

bingo... now that's the answer I was looking for.

Thanks.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities