From e18d9364b8286e5d72329d732fe8a09c8e979ad8 Mon Sep 17 00:00:00 2001 From: robloo Date: Sun, 28 May 2023 12:32:39 -0400 Subject: [PATCH] Completely remove Border line dash properties --- src/Avalonia.Controls/Border.cs | 68 --------------------------------- 1 file changed, 68 deletions(-) diff --git a/src/Avalonia.Controls/Border.cs b/src/Avalonia.Controls/Border.cs index 3c0802c013..e7373a813e 100644 --- a/src/Avalonia.Controls/Border.cs +++ b/src/Avalonia.Controls/Border.cs @@ -47,34 +47,6 @@ namespace Avalonia.Controls public static readonly StyledProperty BoxShadowProperty = AvaloniaProperty.Register(nameof(BoxShadow)); - /// - /// Defines the property. - /// - [Obsolete("Dashed lines on Border are no longer supported. Use Shapes directly instead.")] - public static readonly StyledProperty BorderDashOffsetProperty = - AvaloniaProperty.Register(nameof(BorderDashOffset)); - - /// - /// Defines the property. - /// - [Obsolete("Dashed lines on Border are no longer supported. Use Shapes directly instead.")] - public static readonly StyledProperty?> BorderDashArrayProperty = - AvaloniaProperty.Register?>(nameof(BorderDashArray)); - - /// - /// Defines the property. - /// - [Obsolete("Dashed lines on Border are no longer supported. Use Shapes directly instead.")] - public static readonly StyledProperty BorderLineCapProperty = - AvaloniaProperty.Register(nameof(BorderLineCap), PenLineCap.Flat); - - /// - /// Defines the property. - /// - [Obsolete("Dashed lines on Border are no longer supported. Use Shapes directly instead.")] - public static readonly StyledProperty BorderLineJoinProperty = - AvaloniaProperty.Register(nameof(BorderLineJoin), PenLineJoin.Miter); - private readonly BorderRenderHelper _borderRenderHelper = new BorderRenderHelper(); private Thickness? _layoutThickness; private double _scale; @@ -128,16 +100,6 @@ namespace Avalonia.Controls set => SetValue(BorderBrushProperty, value); } - /// - /// Gets or sets a collection of values that indicate the pattern of dashes and gaps that is used to outline shapes. - /// - [Obsolete("Dashed lines on Border are no longer supported. Use Shapes directly instead.")] - public AvaloniaList? BorderDashArray - { - get => GetValue(BorderDashArrayProperty); - set => SetValue(BorderDashArrayProperty, value); - } - /// /// Gets or sets the thickness of the border. /// @@ -147,36 +109,6 @@ namespace Avalonia.Controls set => SetValue(BorderThicknessProperty, value); } - /// - /// Gets or sets a value that specifies the distance within the dash pattern where a dash begins. - /// - [Obsolete("Dashed lines on Border are no longer supported. Use Shapes directly instead.")] - public double BorderDashOffset - { - get => GetValue(BorderDashOffsetProperty); - set => SetValue(BorderDashOffsetProperty, value); - } - - /// - /// Gets or sets a enumeration value that describes the shape at the ends of a line. - /// - [Obsolete("Dashed lines on Border are no longer supported. Use Shapes directly instead.")] - public PenLineCap BorderLineCap - { - get => GetValue(BorderLineCapProperty); - set => SetValue(BorderLineCapProperty, value); - } - - /// - /// Gets or sets a enumeration value that specifies the type of join that is used at the vertices of a Shape. - /// - [Obsolete("Dashed lines on Border are no longer supported. Use Shapes directly instead.")] - public PenLineJoin BorderLineJoin - { - get => GetValue(BorderLineJoinProperty); - set => SetValue(BorderLineJoinProperty, value); - } - /// /// Gets or sets the radius of the border rounded corners. ///