Take the 2-minute tour ×

I have a Silverlight application in which I display some phone numbers. I want that numbers to be displayed as links and when the user clicks on the links to be redirected to skype. (The same as on html).

This is the equivalent in html (just to understand what i need):

<a href="callto:+11 11 111 11 11"> +11 11 111 11 11</a>

In silverlight I tried with:

<HyperlinkButton Content="{Binding}" NavigateUri="{Binding StringFormat=callto:\{0\}}" />

but I get System.InvalidOperationException: Failed to navigate to callto:+11 11 111 11 11.

Does somebody knows a solution for this?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Can you try using Javascript to invoke that sort of anchor? If you're able to do this via Javascript, try using the Eval function to invoke the Javascript from Silverlight:


share|improve this answer
It's working like a charm :) Thanks. –  costin Feb 14 '11 at 12:12
add comment

This may be a little late, but if you still want to keep it in Silverlight code, then this will work:

Public Class MyHyperLink : Inherits HyperlinkButton
Sub New(ByVal uri As String)
    MyBase.NavigateUri = New Uri(uri)
End Sub

Public Sub Execute()
    Application.Current.Host.Content.IsFullScreen = False
    MyBase.TargetName = "_blank"
End Sub

End Class

And to call, add the following code::

Dim nav As New MyHyperLink(URL)
share|improve this answer
add comment

Your Answer


