Hi,
I was trying to put 4 buttons inside a grid, however there is some offset for the button position.
Based on the length of the BadgeText, the position is changing, check the image and code below.
Any suggestion,
Shaw
Image link: https://ibb.co/1LWZZ5y
Codes:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<badge:SfBadgeView
Grid.Row="0"
Grid.Column="0"
BadgeText="1"
HorizontalOptions="Center"
VerticalOptions="Center">
<badge:SfBadgeView.Content>
<Grid>
<Button
HeightRequest="60"
HorizontalOptions="Center"
ImageSource="icon.png"
Text="Invoices"
VerticalOptions="Center"
WidthRequest="120" />
</Grid>
</badge:SfBadgeView.Content>
</badge:SfBadgeView>
<badge:SfBadgeView
Grid.Row="0"
Grid.Column="1"
BadgeText="22"
HorizontalOptions="Center"
VerticalOptions="Center">
<badge:SfBadgeView.Content>
<Button
HeightRequest="60"
Text="Stop Lines"
WidthRequest="120" />
</badge:SfBadgeView.Content>
</badge:SfBadgeView>
<badge:SfBadgeView
Grid.Row="1"
Grid.Column="0"
HorizontalOptions="Center"
VerticalOptions="Center">
<badge:SfBadgeView.Content>
<Button
HeightRequest="60"
Text="Contact"
WidthRequest="120" />
</badge:SfBadgeView.Content>
</badge:SfBadgeView>
<badge:SfBadgeView
Grid.Row="1"
Grid.Column="1"
BadgeText="22222"
HorizontalOptions="Center"
VerticalOptions="Center">
<badge:SfBadgeView.Content>
<Button
HeightRequest="60"
HorizontalOptions="Center"
Text="More ..."
VerticalOptions="Center"
WidthRequest="120" />
</badge:SfBadgeView.Content>
</badge:SfBadgeView>
</Grid>