linklabel in wpf application

Posted by Chilverupavan under WPF on 6/9/2010 | Views : 7563 | Status : [Member] | Replies : 1
how to navigate one form to another in wpf..
i m developed window application using wpf
i have ten more form how navigate one form to another form using linklabel...............


Posted by: Abhi2434 on: 6/10/2010 [Member] [Microsoft_MVP] [MVP] Silver

The best way to implement this is using NavigateWindow as it is created for this purpose.

Other than that, you can normally create a Label and design a the label with underline and the same look and feel as with hyperlink as below :
<Style TargetType="Button" x:Key="stHyperlinkButton">

<Setter Property="Foreground"
Value="LightBlue" />
<Setter Property="FontSize"
Value="14" />
<Setter Property="Template"
Value="{DynamicResource ctHyperlink}" />
<Trigger Property="IsMouseOver"
<Setter Property="Foreground"
Value="Tomato" />

Now you can use :
<Button   Cursor="Hand"   x:Name="btnSeverUrl" Style="{DynamicResource stHyperlinkButton}" Content="" >

I hope this is what you wanted.

Chilverupavan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response