Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created November 10, 2017 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/ead56c50bd115af41b38d62d17faae95 to your computer and use it in GitHub Desktop.
Save juucustodio/ead56c50bd115af41b38d62d17faae95 to your computer and use it in GitHub Desktop.
Example of BadgeView with circle box using custom renderer - http://julianocustodio.com/badgeview
...
public MainPage()
{
InitializeComponent();
BadgeNotifications.Text = "2";
}
private void AddNotification(object sender, EventArgs e)
{
if (BadgeNotifications.Text != "99+" && int.Parse(BadgeNotifications.Text) < 99 )
BadgeNotifications.Text = (int.Parse(BadgeNotifications.Text)+1).ToString();
else
{
BadgeNotifications.Text = "99+";
}
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment