Files
ShrlAlgoToolkit/NeuWPF/NeoUI/Controls/Hyperlink.xaml.cs
ShrlAlgo 955a01f564 整理
2025-08-20 12:10:35 +08:00

26 lines
762 B
C#

using System.Windows.Controls.Primitives;
namespace NeoUI.Controls;
/// <summary>
/// A hyperlink button.
/// </summary>
public class Hyperlink : ButtonBase
{
#region Properties
public static readonly DependencyProperty UriProperty =
DependencyProperty.Register(nameof(Uri), typeof(string), typeof(Hyperlink), new PropertyMetadata(string.Empty));
/// <summary>
/// Gets or sets the uri of hyperlinks.
/// </summary>
public string Uri { get => (string)GetValue(UriProperty);
set => SetValue(UriProperty, value);
}
#endregion
#region Constructors
static Hyperlink()
{ DefaultStyleKeyProperty.OverrideMetadata(typeof(Hyperlink), new FrameworkPropertyMetadata(typeof(Hyperlink))); }
#endregion
}