Created
November 10, 2017 19:32
-
-
Save juucustodio/5c6203e81cc8da38261fa7fa8ed0aea7 to your computer and use it in GitHub Desktop.
Example of BadgeView with circle box using custom renderer - http://julianocustodio.com/badgeview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
namespace BadgeView | |
{ | |
public class CircleBox : BoxView | |
{ | |
// Corner radius property. | |
public static readonly BindableProperty CornerRadiusProperty = | |
BindableProperty.Create("CornerRadius", typeof(double), typeof(CircleBox), 0.0); | |
// Get and set the corner radius. | |
public double CornerRadius | |
{ | |
get { return (double) GetValue(CornerRadiusProperty); } | |
set { SetValue(CornerRadiusProperty, value); } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment