|
|
@ -18,7 +18,7 @@ namespace Avalonia.Controls.Documents |
|
|
/// Defines the <see cref="FontFamily"/> property.
|
|
|
/// Defines the <see cref="FontFamily"/> property.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public static readonly AttachedProperty<FontFamily> FontFamilyProperty = |
|
|
public static readonly AttachedProperty<FontFamily> FontFamilyProperty = |
|
|
AvaloniaProperty.RegisterAttached<TextElement, Control, FontFamily>( |
|
|
AvaloniaProperty.RegisterAttached<TextElement, TextElement, FontFamily>( |
|
|
nameof(FontFamily), |
|
|
nameof(FontFamily), |
|
|
defaultValue: FontFamily.Default, |
|
|
defaultValue: FontFamily.Default, |
|
|
inherits: true); |
|
|
inherits: true); |
|
|
@ -27,7 +27,7 @@ namespace Avalonia.Controls.Documents |
|
|
/// Defines the <see cref="FontSize"/> property.
|
|
|
/// Defines the <see cref="FontSize"/> property.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public static readonly AttachedProperty<double> FontSizeProperty = |
|
|
public static readonly AttachedProperty<double> FontSizeProperty = |
|
|
AvaloniaProperty.RegisterAttached<TextElement, Control, double>( |
|
|
AvaloniaProperty.RegisterAttached<TextElement, TextElement, double>( |
|
|
nameof(FontSize), |
|
|
nameof(FontSize), |
|
|
defaultValue: 12, |
|
|
defaultValue: 12, |
|
|
inherits: true); |
|
|
inherits: true); |
|
|
@ -36,7 +36,7 @@ namespace Avalonia.Controls.Documents |
|
|
/// Defines the <see cref="FontStyle"/> property.
|
|
|
/// Defines the <see cref="FontStyle"/> property.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public static readonly AttachedProperty<FontStyle> FontStyleProperty = |
|
|
public static readonly AttachedProperty<FontStyle> FontStyleProperty = |
|
|
AvaloniaProperty.RegisterAttached<TextElement, Control, FontStyle>( |
|
|
AvaloniaProperty.RegisterAttached<TextElement, TextElement, FontStyle>( |
|
|
nameof(FontStyle), |
|
|
nameof(FontStyle), |
|
|
inherits: true); |
|
|
inherits: true); |
|
|
|
|
|
|
|
|
@ -44,7 +44,7 @@ namespace Avalonia.Controls.Documents |
|
|
/// Defines the <see cref="FontWeight"/> property.
|
|
|
/// Defines the <see cref="FontWeight"/> property.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public static readonly AttachedProperty<FontWeight> FontWeightProperty = |
|
|
public static readonly AttachedProperty<FontWeight> FontWeightProperty = |
|
|
AvaloniaProperty.RegisterAttached<TextElement, Control, FontWeight>( |
|
|
AvaloniaProperty.RegisterAttached<TextElement, TextElement, FontWeight>( |
|
|
nameof(FontWeight), |
|
|
nameof(FontWeight), |
|
|
inherits: true, |
|
|
inherits: true, |
|
|
defaultValue: FontWeight.Normal); |
|
|
defaultValue: FontWeight.Normal); |
|
|
@ -53,7 +53,7 @@ namespace Avalonia.Controls.Documents |
|
|
/// Defines the <see cref="FontStretch"/> property.
|
|
|
/// Defines the <see cref="FontStretch"/> property.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public static readonly AttachedProperty<FontStretch> FontStretchProperty = |
|
|
public static readonly AttachedProperty<FontStretch> FontStretchProperty = |
|
|
AvaloniaProperty.RegisterAttached<TextElement, Control, FontStretch>( |
|
|
AvaloniaProperty.RegisterAttached<TextElement, TextElement, FontStretch>( |
|
|
nameof(FontStretch), |
|
|
nameof(FontStretch), |
|
|
inherits: true, |
|
|
inherits: true, |
|
|
defaultValue: FontStretch.Normal); |
|
|
defaultValue: FontStretch.Normal); |
|
|
@ -62,7 +62,7 @@ namespace Avalonia.Controls.Documents |
|
|
/// Defines the <see cref="Foreground"/> property.
|
|
|
/// Defines the <see cref="Foreground"/> property.
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public static readonly AttachedProperty<IBrush?> ForegroundProperty = |
|
|
public static readonly AttachedProperty<IBrush?> ForegroundProperty = |
|
|
AvaloniaProperty.RegisterAttached<TextElement, Control, IBrush?>( |
|
|
AvaloniaProperty.RegisterAttached<TextElement, TextElement, IBrush?>( |
|
|
nameof(Foreground), |
|
|
nameof(Foreground), |
|
|
Brushes.Black, |
|
|
Brushes.Black, |
|
|
inherits: true); |
|
|
inherits: true); |
|
|
|