Browse Source

Revert Inline breaking change

pull/12638/head
Julien Lebosquain 3 years ago
parent
commit
495e2bb973
No known key found for this signature in database GPG Key ID: 1833CAD10ACC46FD
  1. 3
      src/Avalonia.Controls/Documents/Inline.cs

3
src/Avalonia.Controls/Documents/Inline.cs

@ -10,10 +10,11 @@ namespace Avalonia.Controls.Documents
/// </summary>
public abstract class Inline : TextElement
{
// TODO12: change the field type to an AttachedProperty for consistency (breaking change)
/// <summary>
/// AvaloniaProperty for <see cref="TextDecorations" /> property.
/// </summary>
public static readonly AttachedProperty<TextDecorationCollection?> TextDecorationsProperty =
public static readonly StyledProperty<TextDecorationCollection?> TextDecorationsProperty =
AvaloniaProperty.RegisterAttached<Inline, Inline, TextDecorationCollection?>(
nameof(TextDecorations),
inherits: true);

Loading…
Cancel
Save