Skip to content

Commit

Permalink
Re-remove layout<t> stroke properties
Browse files Browse the repository at this point in the history
  • Loading branch information
hartez committed Sep 13, 2021
1 parent cc02828 commit 0376a0b
Showing 1 changed file with 0 additions and 74 deletions.
74 changes: 0 additions & 74 deletions src/Controls/src/Core/HandlerImpl/Layout.Impl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,80 +7,6 @@ namespace Microsoft.Maui.Controls.Compatibility
{
public abstract partial class Layout<T>
{
public static readonly BindableProperty StrokeShapeProperty =
BindableProperty.Create(nameof(StrokeShape), typeof(IShape), typeof(Layout), null);

public static readonly BindableProperty StrokeProperty =
BindableProperty.Create(nameof(Stroke), typeof(Brush), typeof(Layout), null);

public static readonly BindableProperty StrokeThicknessProperty =
BindableProperty.Create(nameof(StrokeThickness), typeof(double), typeof(Layout), 1.0);

public static readonly BindableProperty StrokeDashArrayProperty =
BindableProperty.Create(nameof(StrokeDashArray), typeof(DoubleCollection), typeof(Layout), null,
defaultValueCreator: bindable => new DoubleCollection());

public static readonly BindableProperty StrokeDashOffsetProperty =
BindableProperty.Create(nameof(StrokeDashOffset), typeof(double), typeof(Layout), 0.0);

public static readonly BindableProperty StrokeLineCapProperty =
BindableProperty.Create(nameof(StrokeLineCap), typeof(PenLineCap), typeof(Layout), PenLineCap.Flat);

public static readonly BindableProperty StrokeLineJoinProperty =
BindableProperty.Create(nameof(StrokeLineJoin), typeof(PenLineJoin), typeof(Layout), PenLineJoin.Miter);

public static readonly BindableProperty StrokeMiterLimitProperty =
BindableProperty.Create(nameof(StrokeMiterLimit), typeof(double), typeof(Layout), 10.0);

[System.ComponentModel.TypeConverter(typeof(StrokeShapeTypeConverter))]
public IShape StrokeShape
{
set { SetValue(StrokeShapeProperty, value); }
get { return (IShape)GetValue(StrokeShapeProperty); }
}

public Brush Stroke
{
set { SetValue(StrokeProperty, value); }
get { return (Brush)GetValue(StrokeProperty); }
}

public double StrokeThickness
{
set { SetValue(StrokeThicknessProperty, value); }
get { return (double)GetValue(StrokeThicknessProperty); }
}

public DoubleCollection StrokeDashArray
{
set { SetValue(StrokeDashArrayProperty, value); }
get { return (DoubleCollection)GetValue(StrokeDashArrayProperty); }
}

public double StrokeDashOffset
{
set { SetValue(StrokeDashOffsetProperty, value); }
get { return (double)GetValue(StrokeDashOffsetProperty); }
}

public PenLineCap StrokeLineCap
{
set { SetValue(StrokeLineCapProperty, value); }
get { return (PenLineCap)GetValue(StrokeLineCapProperty); }
}

public PenLineJoin StrokeLineJoin
{
set { SetValue(StrokeLineJoinProperty, value); }
get { return (PenLineJoin)GetValue(StrokeLineJoinProperty); }
}

public double StrokeMiterLimit
{
set { SetValue(StrokeMiterLimitProperty, value); }
get { return (double)GetValue(StrokeMiterLimitProperty); }
}

int ICollection<IView>.Count => _children.Count;
bool ICollection<IView>.IsReadOnly => ((ICollection<IView>)_children).IsReadOnly;
public IView this[int index] { get => _children[index]; set => _children[index] = (T)value; }
Expand Down

0 comments on commit 0376a0b

Please sign in to comment.