A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
Sorry, my code is currently this...
<StackLayout Margin="0,80,0,0" >
<ListView HasUnevenRows="True" ItemsSource="{Binding ItemList}" >
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="160" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<StackLayout>
<Image Source="{Binding ImageUrl}" WidthRequest="180" ></Image>
<ImageButton Background="red" Command="{Binding OpenPadlockCommand}" WidthRequest="40" Source="closedPadlock" Margin="0,-150,0,0" HorizontalOptions="Center" BorderColor="Transparent" BackgroundColor="Transparent"/>
<Label Text="{Binding NameDevice}" FontAttributes="Bold" TextColor="Black" HorizontalOptions="Center"/>
<Label Text="{Binding Open}" TextColor="Gray" HorizontalOptions="Center"/>
</StackLayout>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
<Button Text="List padlock" Command="{Binding GridPadlock}" />
As the Binding ItemList is responsible for getting the number of available devices, however, this way is not dynamic as I wanted, for example two columns and two items per line, that way everything is in the middle and nothing dynamic