Created
November 10, 2017 21:28
-
-
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
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
... | |
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