|
|
|
@ -56,6 +56,12 @@ namespace Perspex.Controls.Primitives |
|
|
|
public static readonly StyledProperty<FontStyle> FontStyleProperty = |
|
|
|
TextBlock.FontStyleProperty.AddOwner<TemplatedControl>(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Defines the <see cref="FontWeight"/> property.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly StyledProperty<FontWeight> FontWeightProperty = |
|
|
|
TextBlock.FontWeightProperty.AddOwner<TemplatedControl>(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Defines the <see cref="Foreground"/> property.
|
|
|
|
/// </summary>
|
|
|
|
@ -177,6 +183,15 @@ namespace Perspex.Controls.Primitives |
|
|
|
set { SetValue(FontStyleProperty, value); } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the font weight used to draw the control's text.
|
|
|
|
/// </summary>
|
|
|
|
public FontWeight FontWeihght |
|
|
|
{ |
|
|
|
get { return GetValue(FontWeightProperty); } |
|
|
|
set { SetValue(FontWeightProperty, value); } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the brush used to draw the control's text and other foreground elements.
|
|
|
|
/// </summary>
|
|
|
|
|