Heading.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System.Windows;
  2. using System.Windows.Controls;
  3. namespace CustomUI
  4. {
  5. public class Heading : TextBlock
  6. {
  7. #region DependencyProperty
  8. #region HeaderType
  9. public EnumHeadingType HeaderType
  10. {
  11. get { return (EnumHeadingType)GetValue(HeaderTypeProperty); }
  12. set { SetValue(HeaderTypeProperty, value); }
  13. }
  14. public static readonly DependencyProperty HeaderTypeProperty =
  15. DependencyProperty.Register("HeaderType", typeof(EnumHeadingType), typeof(Heading));
  16. #endregion
  17. #endregion
  18. #region Constructors
  19. static Heading()
  20. {
  21. DefaultStyleKeyProperty.OverrideMetadata(typeof(Heading), new FrameworkPropertyMetadata(typeof(Heading)));
  22. }
  23. #endregion
  24. #region Override
  25. public override void OnApplyTemplate()
  26. {
  27. base.OnApplyTemplate();
  28. }
  29. #endregion
  30. #region private function
  31. #endregion
  32. #region Event Implement Function
  33. #endregion
  34. }
  35. }