Getting rid of the border around Silverlight HyperLinkButtons

For a Silverlight application, I didn’t want the blue border to appear around a HyperLinkButton when I clicked on it – I wanted a more seamless interface, and I found it with the IsTabStop property.

<HyperlinkButton Name="LikeName" Content="{Binding}" IsTabStop="False" Click="LikeName_Click" Foreground="Black" Height="20" />

The simple change of adding ‘IsTabStop=”False”‘ was all it took.

Advertisements
  1. #1 by Catalin Miclea on April 12, 2012 - 11:00 am

    Man, you are a lifesaver!!!:) I’ve been searching about this for 2 months… Thanks, man!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: