Buttons/Grid Column Padding issue

BenGrimwadeBenGrimwade GBUniversity
edited April 2016 in Xamarin.Forms

Hi All,

I have the following Xaml:

<Grid Padding="0">
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="*"></ColumnDefinition>
          <ColumnDefinition Width="*"></ColumnDefinition>
          <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <ContentView Grid.Column="0">
          <Button Text="SomeText" 
                  BorderRadius="0" Grid.Column="0" 
                  BorderWidth="0"
                  BackgroundColor="Red"
                  TextColor="White"
                  ></Button>
        </ContentView>
        <ContentView Grid.Column="0">
          <Button Text="SomeText" 
                  BorderRadius="0" Grid.Column="0" 
                  BorderWidth="0"
             BackgroundColor="Blue"
                  TextColor="White"
                  ></Button>
        </ContentView>
        <ContentView Grid.Column="0">
          <Button Text="SomeText" 
                  BorderRadius="0" Grid.Column="0" 
                  BorderWidth="0"
              BackgroundColor="Green"
                  TextColor="White"
                  ></Button>
        </ContentView>
      </Grid>

When this renders, there is a gap between each of the buttons. I want the buttons to touch. I can't see any padding or margin set anywhere though?

Best Answer

Answers

Sign In or Register to comment.