Adjust entry in the Grid

I have a Grid with 2 columns, and I want to adjust an Entry in the right column. However, the Entry goes down to the next row and grow to the both columns.

Any way to solve it? I already tried to use a StackLayout like the Entry container, and still does not work.

Tagged:

Best Answer

Answers

  • JaviPintorJaviPintor USMember ✭✭
    edited September 2015

    Ok, this is the Grid code:

    <Grid>
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
      </Grid.RowDefinitions>
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="50*" />
        <ColumnDefinition Width="50*" />
      </Grid.ColumnDefinitions>
    
      <Label Grid.Row="0" Grid.Column="0" Text="Cantidad:" FontAttributes="Bold" TextColor="#000000" />
      <Entry Grid.Row="0" Grid.Column="1" Text="{Binding Path=Cantidad, Mode=TwoWay}" />
    
    <Grid>
    
  • JaviPintorJaviPintor USMember ✭✭

    Looks like the column width=50* is the problem, now with Auto works!

Sign In or Register to comment.