Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Xamarin Forms XAML :How to add automatically rows an column by an add button UI ?

$
0
0

I wrote the code in **XAML ** for a grid one row/one column for add a sport score

<Grid.ColumnDefinitions>


</Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
                <RowDefinition Height ="70"/>
            <RowDefinition Height ="20"/>
             <RowDefinition Height ="20"/>
         </Grid.RowDefinitions>

         <Entry Placeholder="Enter your number" BackgroundColor="Silver"  Grid.Row="0" Grid.Column="0"
                HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Keyboard="Numeric"/>
         <Label BackgroundColor="Silver" Grid.Row="0"   Grid.ColumnSpan="1"
           Grid.Column="0" HorizontalOptions="FillAndExpand"
           VerticalOptions="FillAndExpand"/>

          <Entry Placeholder="Enter your movement" BackgroundColor="Silver"  Grid.Row="0" Grid.Column="1"
                HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Keyboard="Text"/>
         <Label BackgroundColor="Silver" Grid.Row="1"   Grid.ColumnSpan="1"
           Grid.Column="0" HorizontalOptions="FillAndExpand"
           VerticalOptions="FillAndExpand"/>

But in my app in the User Interface a button "Add" will offer the possibility to add a new row/column ans this until 10 times.

i looking the best way to do it

Somebody can help me?

Thanks


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>