diff --git a/src/Perspex.Controls/Primitives/TemplatedControl.cs b/src/Perspex.Controls/Primitives/TemplatedControl.cs index 7c3d7dd7cf..c688d667b5 100644 --- a/src/Perspex.Controls/Primitives/TemplatedControl.cs +++ b/src/Perspex.Controls/Primitives/TemplatedControl.cs @@ -56,6 +56,12 @@ namespace Perspex.Controls.Primitives public static readonly StyledProperty FontStyleProperty = TextBlock.FontStyleProperty.AddOwner(); + /// + /// Defines the property. + /// + public static readonly StyledProperty FontWeightProperty = + TextBlock.FontWeightProperty.AddOwner(); + /// /// Defines the property. /// @@ -177,6 +183,15 @@ namespace Perspex.Controls.Primitives set { SetValue(FontStyleProperty, value); } } + /// + /// Gets or sets the font weight used to draw the control's text. + /// + public FontWeight FontWeihght + { + get { return GetValue(FontWeightProperty); } + set { SetValue(FontWeightProperty, value); } + } + /// /// Gets or sets the brush used to draw the control's text and other foreground elements. ///