Files
Shrlalgo.RvKits/AntdWpf/Controls/Hyperlink.cs
ShrlAlgo 4d35cadb56 更新
2025-07-11 09:20:23 +08:00

37 lines
926 B
C#

namespace AntdWpf.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
}
}