Loading ...

Syntax for hyperlink button in silverlight

Who is online?  0 guests and 0 members
home  »  forums   »  general topics   »  suggestions / feedback    » Syntax for hyperlink button in silverlight

Syntax for hyperlink button in silverlight

Posts under the topic: Syntax for hyperlink button in silverlight

Posted: 10/24/2011

Lurker 170  points  Lurker
  • Joined on: 9/16/2010
  • Posts: 34

Hi Guys,

  Can any one provide me sample hyperlink code in silvelight..

 

plz 

 

Thanking you,

J.Vamsidhar


Posted: 10/24/2011

Starter 727  points  Starter
  • Joined on: 6/6/2011
  • Posts: 74

Hi,

You can create it through HyperlinkButton control.

Example how to open the link in the new window:

 

<HyperlinkButton Content="Click Me" TargetName="_blank" NavigateUri="http://www.silverlight.net"> 
</HyperlinkButton>

 


Here TargetName tells you where the window to be opened.

To open the link in a new window, TargetName = _blank, _media, _search.

To open the link in the same winowd, TargetName = _parent, _self, _top.

Regards,

Gjorgji Dimitrov


Page 1 of 1 (2 items)