Skip to content

Commit

Permalink
Update default shape values in CustomSwitch properties
Browse files Browse the repository at this point in the history
Changed default values for StrokeShapeProperty and KnobStrokeShapeProperty in the CustomSwitch class from Rect to Rectangle. This update likely corrects or improves the shape type used for these properties.
  • Loading branch information
IeuanWalker committed Nov 19, 2024
1 parent f6f93bc commit 2ac5af9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scr/Switch/CustomSwitch.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public int ToggleAnimationDuration
set => SetValue(WidthRequestProperty, value);
}

public static readonly BindableProperty StrokeShapeProperty = BindableProperty.Create(nameof(StrokeShape), typeof(IShape), typeof(CustomSwitch), new Rect());
public static readonly BindableProperty StrokeShapeProperty = BindableProperty.Create(nameof(StrokeShape), typeof(IShape), typeof(CustomSwitch), new Rectangle());

[TypeConverter(typeof(StrokeShapeTypeConverter))]
public IShape? StrokeShape
Expand Down Expand Up @@ -126,7 +126,7 @@ public Color KnobBackgroundColor
set => SetValue(KnobBackgroundColorProperty, value);
}

public static readonly BindableProperty KnobStrokeShapeProperty = BindableProperty.Create(nameof(KnobStrokeShape), typeof(IShape), typeof(CustomSwitch), new Rect());
public static readonly BindableProperty KnobStrokeShapeProperty = BindableProperty.Create(nameof(KnobStrokeShape), typeof(IShape), typeof(CustomSwitch), new Rectangle());

[TypeConverter(typeof(StrokeShapeTypeConverter))]
public IShape? KnobStrokeShape
Expand Down

0 comments on commit 2ac5af9

Please sign in to comment.