|
<syncfusion:SfListView x:Name="listView" AutoFitMode="DynamicHeight" ItemSpacing="5" ItemsSource="{Binding ContactsInfo}">
<syncfusion:SfListView.ItemTemplate >
<DataTemplate>
<StackLayout x:Name="ImagePostLayout" BackgroundColor="Beige">
<Grid RowSpacing="0">
<Grid.RowDefinitions>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Image x:Name="RecentPostImg" HeightRequest="300" Grid.Row="0" Grid.Column="0" Source="{Binding ContactImage}" ></Image>
<Label x:Name="PostTextLbl" Grid.Row="0" Grid.Column="0" Text="{Binding ContactName}" VerticalTextAlignment="Center" HorizontalTextAlignment="Center" FontSize="15"></Label>
<StackLayout x:Name="MapPost" BackgroundColor="Accent" Grid.Row="1">
<maps:Map x:Name="map" HasZoomEnabled="True" IsShowingUser="True">
<maps:Map.ItemTemplate>
<DataTemplate>
<maps:Pin Type="Place" Position="{Binding MapPosition}" />
</DataTemplate>
</maps:Map.ItemTemplate>
</maps:Map>
</StackLayout>
</Grid>
</StackLayout>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView> |