Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I avoid the bluish border when clicking a HyperlinkButton in Silverlight?

I have a Silverlight menu for my application with an image as the background. I use some empty HyperlinkButton at a specific position and size to simulate a real button on the image (think as a HTML image-map):

<HyperlinkButton x:Name="Portfolio" Width="86" Height="40" Canvas.Top="50" NavigateUri="/portfolio"/>
<HyperlinkButton x:Name="Analysis" Width="79" Height="40" Canvas.Top="50" Canvas.Left="124" NavigateUri="/analysis" BorderThickness="0"/>
<HyperlinkButton x:Name="News" Width="77" Height="40" Canvas.Top="50" Canvas.Left="240"  NavigateUri="/news"/>
<HyperlinkButton x:Name="Questions" Width="80" Height="40" Canvas.Top="50" Canvas.Left="357" NavigateUri="/questions"/>
<HyperlinkButton x:Name="Companies" Width="80" Height="40" Canvas.Top="50" Canvas.Left="477" NavigateUri="/companies"/>

The problem is when I click these buttons it shows a bluish border corresponding to the hyperlink button area during the click event. There is a way I can avoid showing that?

like image 353
Edwin Jarvis Avatar asked Feb 05 '09 01:02

Edwin Jarvis


1 Answers

I found the answer in other blog, just set IsTabStop="False" in the HyperLinkButton instance.

like image 57
Juan Mejia Avatar answered Nov 15 '22 12:11

Juan Mejia