月更
This commit is contained in:
36
AntDesignWPF/Controls/Hyperlink.cs
Normal file
36
AntDesignWPF/Controls/Hyperlink.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
namespace AntDesign.WPF.Controls
|
||||
{
|
||||
using System.Windows;
|
||||
using System.Windows.Controls.Primitives;
|
||||
|
||||
/// <summary>
|
||||
/// A hyperlink button.
|
||||
/// </summary>
|
||||
public class Hyperlink : ButtonBase
|
||||
{
|
||||
|
||||
#region Properties
|
||||
|
||||
public static readonly DependencyProperty UriProperty =
|
||||
DependencyProperty.Register("Uri", typeof(string), typeof(Hyperlink), new PropertyMetadata(string.Empty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the uri of hyperlinks.
|
||||
/// </summary>
|
||||
public string Uri
|
||||
{
|
||||
get { return (string)GetValue(UriProperty); }
|
||||
set { SetValue(UriProperty, value); }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
static Hyperlink()
|
||||
{
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(Hyperlink), new FrameworkPropertyMetadata(typeof(Hyperlink)));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user