Skip to content

Instantly share code, notes, and snippets.

@nurcinozer
Created August 7, 2019 14:20
Show Gist options
  • Save nurcinozer/5da8bd7d3c9af1cc3c66f0f8a1861483 to your computer and use it in GitHub Desktop.
Save nurcinozer/5da8bd7d3c9af1cc3c66f0f8a1861483 to your computer and use it in GitHub Desktop.
<ListView ItemsSource="{Binding accountItems}"
HasUnevenRows="true"
ItemSelected="OnListViewItemSelected"
ItemTapped="OnListViewItemTapped">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Padding="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Label Text="&#xf105;"
FontFamily="{StaticResource FontAwesomeSolid}"
FontSize="16"
TextColor="#707070"
VerticalOptions="CenterAndExpand"
TranslationY="15"
HorizontalOptions="EndAndExpand"
Grid.Column="1"/>
<Label Text="{Binding Name}"
Style="{StaticResource MenuName}"
TextColor="#0B102F"/>
<Label Grid.Row="1"
Text="{Binding Description}"
Style="{StaticResource MenuDescription}"
VerticalOptions="End"
TextColor="#707070"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment