linklabel in wpf application

Posted by Chilverupavan under WPF on 6/9/2010 | Views : 8089 | 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...............




Responses

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

Up
0
Down
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}" />
<Style.Triggers>
<Trigger Property="IsMouseOver"
Value="true">
<Setter Property="Foreground"
Value="Tomato" />
</Trigger>
</Style.Triggers>
</Style>

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


I hope this is what you wanted.

www.abhisheksur.com

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

Login to post response