From b6c60cf334c8f9c41555b22adfd8e4001f4fca37 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Mon, 15 Feb 2016 23:51:15 +0100 Subject: [PATCH] Added FontWeight to TemplatedControl. --- .../Primitives/TemplatedControl.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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. ///