This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -0,0 +1,41 @@
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
}
}