Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of BadgeView with circle box using custom renderer - http://julianocustodio.com/badgeview
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
You can’t perform that action at this time.