Reputation: 12842
I have to remove the white space between ImageButton
in Xamarin Forms 5.
Right now I have placed the buttons in Grid
cells. Each Button
is in each cells.
Upvotes: 2
Views: 161
Reputation: 7445
To control space between Column
s in a Grid
use the ColumnSpacing
property.
The docs states that this property controls
The space between columns in this Grid layout. The default is 6.
As an example take the following code
<Grid ColumnSpacing="0">
<ImageButton Grid.Column="0" Grid.Row="0" BackgroundColor="Red"/>
<ImageButton Grid.Column="1" Grid.Row="0" BackgroundColor="Blue"/>
<ImageButton Grid.Column="2" Grid.Row="0" BackgroundColor="Green"/>
</Grid>
Which creates a three Column
s Row
with no space between the Column
elements:
Upvotes: 2