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

42 lines
1.0 KiB
C#

namespace AntdWpf.Controls
{
using System.Windows;
using System.Windows.Controls;
/// <summary>
/// A heading of the a page.
/// </summary>
public class Heading : TextBlock
{
#region Properties
public static readonly DependencyProperty SizeProperty =
DependencyProperty.Register("Size", typeof(HeadingSizes), typeof(Heading), new PropertyMetadata(HeadingSizes.Normal));
/// <summary>
/// Gets/sets the size of the heading.
/// </summary>
public HeadingSizes Size
{
get { return (HeadingSizes)GetValue(SizeProperty); }
set { SetValue(SizeProperty, value); }
}
#endregion
#region Constructors
static Heading()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(Heading), new FrameworkPropertyMetadata(typeof(Heading)));
}
#endregion
}
public enum HeadingSizes : byte
{
ExtraLarge, Large, Medium, Normal, Small, Tiny
}
}