This commit is contained in:
GG Z
2025-07-31 20:12:01 +08:00
parent 6d96da6f90
commit 4f6cd2137c
292 changed files with 8276 additions and 10827 deletions

View File

@@ -0,0 +1,41 @@
namespace AntDesign.WPF.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
}
}