<badge:SfBadgeView BadgeText="" HorizontalOptions="Center" VerticalOptions="Center" Grid.Column="0">
<badge:SfBadgeView.Content>
<Button Text="Primary" WidthRequest="120" HeightRequest="60"/>
</badge:SfBadgeView.Content>
</badge:SfBadgeView> |
<badge:SfBadgeView.BadgeSettings>
<badge:BadgeSetting BadgeIcon="None" BadgePosition="TopRight"/>
</badge:SfBadgeView.BadgeSettings> |
private void Picker_SelectedIndexChanged(object sender, EventArgs e)
{
var picker = (Picker)sender;
int selectedIndex = picker.SelectedIndex;
if (selectedIndex == 0)
{
badgeView.BadgeText = "new";
}
else
{
badgeView.BadgeText = "";
}
} |