Updated: February 2009
An inline-level flow content element that provides facilities for hosting hyperlinks within flow content.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
implements the NavigateUri property that you set with the Uri of the content that should be navigated to when the Hyperlink is clicked. navigation can only occur, however, if either the direct or indirect parent of a is a navigation host, including NavigationWindow, Frame, or any browser that can host XBAPs (which includes Internet Explorer 7, Microsoft Internet Explorer 6, and Firefox 2.0+). For more information, see the Navigation Hosts topic in Navigation Overview.
Content Model: enforces a strong content model for child content. See TextElement Content Model Overview for more information about the content model.
Dependency properties for this control might be set by the control’s default style. If a property is set by a default style, the property might change from its default value when the control appears in the application. The default style is determined by which desktop theme is used when the application is running. For more information, see Themes.
The following example shows simple use of a element.
The following example shows how to create a programmatically.
Paragraph parx = new Paragraph(); Run run1 = new Run("Text preceeding the hyperlink."); Run run2 = new Run("Text following the hyperlink."); Run run3 = new Run("Link Text."); Hyperlink hyperl = new Hyperlink(run3); hyperl.NavigateUri = new Uri("http://search.msn.com"); parx.Inlines.Add(run1); parx.Inlines.Add(hyperl); parx.Inlines.Add(run2);
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.