Hyperlink layout question
-
Hi! I have added a hyperlink in silverlight. But when i click on the link it displays a blue rectangular border for the size of the hyperlink control. The link opens a popup window, so this doesn't look so good on the webpage.
<HyperlinkButton x:Name="History"
Content="History"
Margin="0"
FontFamily="Arial"
FontSize="10.667"
Click="HistoryHyperlinkButton_Click"
Foreground="Black"
FontWeight="Bold" Background="{x:Null}" Cursor="Hand"
BorderThickness="0"
/>Is there a way to disable this or have i missed somethink?
-
Hi! I have added a hyperlink in silverlight. But when i click on the link it displays a blue rectangular border for the size of the hyperlink control. The link opens a popup window, so this doesn't look so good on the webpage.
<HyperlinkButton x:Name="History"
Content="History"
Margin="0"
FontFamily="Arial"
FontSize="10.667"
Click="HistoryHyperlinkButton_Click"
Foreground="Black"
FontWeight="Bold" Background="{x:Null}" Cursor="Hand"
BorderThickness="0"
/>Is there a way to disable this or have i missed somethink?
One way is to set the IsTabStop="False" on the button. The other way, more correct but tedious, is to style the hyperlink button to modify the focussed state of the state manager. For this you will need to either use Expression Blend or pick up the style from msdn and then modify and use it.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.
-
One way is to set the IsTabStop="False" on the button. The other way, more correct but tedious, is to style the hyperlink button to modify the focussed state of the state manager. For this you will need to either use Expression Blend or pick up the style from msdn and then modify and use it.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.