Intersoft ClientUI Documentation
UXHyperlinkButton Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Aqua Namespace : UXHyperlinkButton Class






Represents a hyperlink-style button for page navigation.

Object Model

UXHyperlinkButton Class

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Represents a hyperlink-style button for page navigation.")>
<TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)>
<TemplatePartAttribute(Name="PresenterElement", Type=System.Windows.Controls.ContentPresenter)>
Public Class UXHyperlinkButton 
   Inherits UXNavigationButton
   Implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus 
Visual Basic (Usage)Copy Code
Dim instance As UXHyperlinkButton
C# 
[DescriptionAttribute("Represents a hyperlink-style button for page navigation.")]
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="PresenterElement", Type=System.Windows.Controls.ContentPresenter)]
public class UXHyperlinkButton : UXNavigationButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  
Delphi 
public class UXHyperlinkButton = class(UXNavigationButton, IControl, IFramework, ILicensing, INavigationSource, INavigationSupport, ICommandSource, IKeyboardFocus)
JScript 
DescriptionAttribute("Represents a hyperlink-style button for page navigation.")
TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)
TemplatePartAttribute(Name="PresenterElement", Type=System.Windows.Controls.ContentPresenter)
public class UXHyperlinkButton extends UXNavigationButton implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus 
Managed Extensions for C++ 
[DescriptionAttribute("Represents a hyperlink-style button for page navigation.")]
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="PresenterElement", Type=System.Windows.Controls.ContentPresenter)]
public __gc class UXHyperlinkButton : public UXNavigationButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  
C++/CLI 
[DescriptionAttribute("Represents a hyperlink-style button for page navigation.")]
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)]
[TemplatePartAttribute(Name="PresenterElement", Type=System.Windows.Controls.ContentPresenter)]
public ref class UXHyperlinkButton : public UXNavigationButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  

Remarks

UXHyperlinkButton is a full-featured navigation control that lets you navigate to local XAML pages targeting a navigation frame, or external URLs targeting a new browser window.

Although the hyperlink and navigation button share many common fundamental features, UXHyperlinkButton is unique in its presentation and visual state. Unlike navigation button, UXHyperlinkButton automatically shows the display text as underline when hovered to achieve the hyperlink style commonly used in web page. You can control this behavior through the ShowUnderlineOnHover property.

In addition, UXHyperlinkButton provides an easy way to customize the brushes of the foreground in different visual states by exposing the ActiveForeground, HoverForeground and PressedForeground properties. This allows you to add interactivity to the hyperlinks without requiring control template editing.

The following shows how to use UXHyperlinkButton to facilitate navigation to the pages in your application.

XAML Copy Code
<StackPanel Orientation="Horizontal" Intersoft:DockPanel.Dock="Top">
    <Intersoft:UXHyperlinkButton Content="Home" NavigateUri="/Home"/>
    <Intersoft:UXHyperlinkButton Content="Products" NavigateUri="/Products"/>
    <Intersoft:UXHyperlinkButton Content="Services" NavigateUri="/Services"/>
    <Intersoft:UXHyperlinkButton Content="About" NavigateUri="/About"/>
</StackPanel>

For a more complete walkthrough that shows how to define the UXFrame and use UXHyperlinkButton to navigate to the pages in the frame, see Walkthrough: Create Simple Website Navigation Using Frame, Navigation Button and Hyperlink.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                  System.Windows.Controls.Primitives.ButtonBase
                     System.Windows.Controls.Button
                        Intersoft.Client.Framework.ISButton
                           Intersoft.Client.UI.Aqua.UXButton
                              Intersoft.Client.UI.Aqua.UXNavigationButton
                                 Intersoft.Client.UI.Aqua.UXHyperlinkButton

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.