Created
December 1, 2019 11:46
-
-
Save yasincidem/771daa2ad62c1a786e4f92cdb1563cfb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="HW2.PeoplePage" | |
NavigationPage.HasBackButton="True" | |
NavigationPage.HasNavigationBar="False"> | |
<ListView x:Name="PersonView" HasUnevenRows="True" > | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<ViewCell> | |
<Grid > | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="Auto" /> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto" /> | |
<ColumnDefinition Width="Auto" /> | |
</Grid.ColumnDefinitions> | |
<Image Grid.RowSpan="3" | |
Source="{Binding imageurl}" | |
Aspect="AspectFit" | |
HeightRequest="100" | |
WidthRequest="80" | |
Margin="8"/> | |
<Label Grid.Row="0" | |
Grid.Column="1" | |
Text="{Binding name}" | |
Margin="10"/> | |
<Label Grid.Row="1" | |
Grid.Column="1" | |
Text="{Binding email}" | |
Margin="10"/> | |
<Label Grid.Row="2" | |
Grid.Column="1" | |
Text="{Binding phonenumber}" | |
Margin="10"/> | |
<Grid.GestureRecognizers> | |
<TapGestureRecognizer CommandParameter="{Binding phonenumber}" Tapped="Handle_Tapped" NumberOfTapsRequired="1"/> | |
</Grid.GestureRecognizers> | |
</Grid> | |
</ViewCell> | |
</DataTemplate> | |
</ListView.ItemTemplate> | |
</ListView> | |
</ContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment