Files
ShrlAlgoToolkit/NeuWPF/NeoUI/Controls/Hyperlink.xaml.cs

26 lines
763 B
C#
Raw Normal View History

2025-08-12 23:08:54 +08:00
using System.Windows.Controls.Primitives;
2025-08-20 12:10:13 +08:00
namespace NeumUI.Controls;
2025-08-12 23:08:54 +08:00
/// <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
}