Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created November 10, 2017 21:26
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/b25dad3c56a7ec4151707ce99cebf6d3 to your computer and use it in GitHub Desktop.
Save juucustodio/b25dad3c56a7ec4151707ce99cebf6d3 to your computer and use it in GitHub Desktop.
Example of BadgeView with circle box using custom renderer - http://julianocustodio.com/badgeview
...
<ContentPage.Content>
<StackLayout VerticalOptions="Center">
<StackLayout Orientation="Horizontal" HorizontalOptions="Center">
<Label HorizontalTextAlignment="Center" Text="Notifications" FontSize="18"/>
<local:Badge x:Name="BadgeNotifications" BoxColor="red"
WidthRequest="18" HeightRequest="18"
VerticalOptions="Center" HorizontalOptions="Center">
<x:Arguments>
<x:Double>30</x:Double>
<x:Double>10</x:Double>
</x:Arguments>
</local:Badge>
</StackLayout>
<Button Text="Add Notification" Clicked="AddNotification"/>
</StackLayout>
</ContentPage.Content>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment