Skip to content

Commit

Permalink
No more IBorderElement
Browse files Browse the repository at this point in the history
  • Loading branch information
sthewissen committed Oct 5, 2020
1 parent 2ad4102 commit 755703f
Showing 1 changed file with 1 addition and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Xamarin.Forms.PancakeView
{
public class PancakeView : ContentView, IBorderElement
public class PancakeView : ContentView
{
public static readonly BindableProperty SidesProperty = BindableProperty.Create(nameof(Sides), typeof(int), typeof(PancakeView), defaultValue: 4);
public static readonly BindableProperty OffsetAngleProperty = BindableProperty.Create(nameof(OffsetAngle), typeof(double), typeof(PancakeView), default(double));
Expand Down Expand Up @@ -132,8 +132,6 @@ public Point BackgroundGradientEndPoint
set => SetValue(BackgroundGradientEndPointProperty, value);
}

//public new IVisual Visual => VisualMarker.Default;

public PancakeView()
{
Visual = VisualMarker.Default;
Expand Down Expand Up @@ -196,30 +194,5 @@ protected override void OnBindingContextChanged()
SetInheritedBindingContext(item, BindingContext);
}
}

public void OnBorderColorPropertyChanged(Color oldValue, Color newValue)
{
// Leave empty. Nothing to do here.
}

public Color BorderColor => default(Color);

int IBorderElement.CornerRadius => 0;

public double BorderWidth => 0;

public int CornerRadiusDefaultValue => 0;

public Color BorderColorDefaultValue => default(Color);

public double BorderWidthDefaultValue => 0;

public bool IsCornerRadiusSet() => false;

public bool IsBackgroundColorSet() => false;

public bool IsBorderColorSet() => false;

public bool IsBorderWidthSet() => false;
}
}

0 comments on commit 755703f

Please sign in to comment.