Created
December 13, 2017 13:08
-
-
Save aybarsyalcin/aa7f972d763e841832ec03093e82d70a to your computer and use it in GitHub Desktop.
ImageTitle on ViewCell
This file contains 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
<ListView x:Name="xListview" ItemsSource="{Binding Items}" SeparatorVisibility="None" VerticalOptions="FillAndExpand" HasUnevenRows="true" ItemSelected="Handle_ItemSelected"> | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<ViewCell> | |
<Grid BackgroundColor="Red" HeightRequest="100" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="50" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> | |
<StackLayout Grid.Column="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> | |
<Image Source="tab_about" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" ></Image> | |
</StackLayout> | |
<StackLayout Grid.Column="1" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"> | |
<Label Text="{Binding Text}" TextColor="White" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" VerticalTextAlignment="Center" HorizontalTextAlignment="Start" FontSize="Medium" /> | |
</StackLayout> | |
</Grid> | |
</ViewCell> | |
</DataTemplate> | |
</ListView.ItemTemplate> | |
</ListView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment