WPF Reflections

Sep 30 2008   11:18AM GMT

WPF – adding hyperlinks to pages



Posted by: MarkWPF
Tags:
WPF
XAML
Xbap

When you are using pages as your building blocks for WPF development, hyperlinks are a useful way to move onto different pages.
That has been proved of course on the internet for many years :-)

As to why you might use pages, see a previous blog.

A hyperlink in the xaml world is similar to the anchor tag in html, in the respect that it goes inside relevant other tags.
For example, to add a hyperlink to a textblock, specify the hyperlink inside the textblock:

<TextBlock>My test is going to be <Hyperlink NavigateUri=”chelsea.xaml”>chels</Hyperlink> and their lack of Deco
</TextBlock>

That specifies the hyperlink, and when you click on it the NavigationService will move to the chelsea.xaml page

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: