diff --git a/Perspex.Controls/TextBlock.cs b/Perspex.Controls/TextBlock.cs index 3ed165e624..7c03c3fdd7 100644 --- a/Perspex.Controls/TextBlock.cs +++ b/Perspex.Controls/TextBlock.cs @@ -17,19 +17,19 @@ namespace Perspex.Controls Border.BackgroundProperty.AddOwner(); public static readonly PerspexProperty FontFamilyProperty = - PerspexProperty.Register("FontFamily", inherits: true); + PerspexProperty.RegisterAttached("FontFamily", inherits: true); public static readonly PerspexProperty FontSizeProperty = - PerspexProperty.Register("FontSize", inherits: true); + PerspexProperty.RegisterAttached("FontSize", inherits: true); public static readonly PerspexProperty FontStyleProperty = - PerspexProperty.Register("FontStyle", inherits: true); + PerspexProperty.RegisterAttached("FontStyle", inherits: true); public static readonly PerspexProperty FontWeightProperty = - PerspexProperty.Register("FontWeight", inherits: true, defaultValue: FontWeight.Normal); + PerspexProperty.RegisterAttached("FontWeight", inherits: true, defaultValue: FontWeight.Normal); public static readonly PerspexProperty ForegroundProperty = - PerspexProperty.Register("Foreground", new SolidColorBrush(0xff000000), inherits: true); + PerspexProperty.RegisterAttached("Foreground", new SolidColorBrush(0xff000000), inherits: true); public static readonly PerspexProperty TextProperty = PerspexProperty.Register("Text");