Intersoft.Client.UI.Aqua Namespace : UXHyperlinkButton Class |
<TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)> <TemplatePartAttribute(Name="PresenterElement", Type=System.Windows.Controls.ContentPresenter)> <DescriptionAttribute("Represents a hyperlink-style button for page navigation.")> Public Class UXHyperlinkButton Inherits UXNavigationButton Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.Input.IKeyboardFocus
Dim instance As UXHyperlinkButton
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)] [TemplatePartAttribute(Name="PresenterElement", Type=System.Windows.Controls.ContentPresenter)] [DescriptionAttribute("Represents a hyperlink-style button for page navigation.")] public class UXHyperlinkButton : UXNavigationButton, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.Input.IKeyboardFocus
[TemplatePartAttribute(Name="TextElement", Type=System.Windows.Controls.TextBlock)] [TemplatePartAttribute(Name="PresenterElement", Type=System.Windows.Controls.ContentPresenter)] [DescriptionAttribute("Represents a hyperlink-style button for page navigation.")] public ref class UXHyperlinkButton : public UXNavigationButton, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSource, Intersoft.Client.Framework.INavigationSupport, Intersoft.Client.Framework.Input.ICommandSource, Intersoft.Client.Framework.Input.IKeyboardFocus
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.
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
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2