namespace AntdWpf.Controls
{
using System.Windows;
using System.Windows.Controls;
///
/// A heading of the a page.
///
public class Heading : TextBlock
{
#region Properties
public static readonly DependencyProperty SizeProperty =
DependencyProperty.Register("Size", typeof(HeadingSizes), typeof(Heading), new PropertyMetadata(HeadingSizes.Normal));
///
/// Gets/sets the size of the heading.
///
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
}
}