Created
February 5, 2020 14:53
-
-
Save ricardoprestes/3fd9a3d0234d07cfe991a4289a4dc517 to your computer and use it in GitHub Desktop.
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
<Label | |
Text="Movimentações dos Próximos 7 Dias" | |
TextColor="Gray" | |
/> | |
<CollectionView | |
ItemsSource="{Binding Movimentations}" | |
ItemsLayout="HorizontalList" | |
HeightRequest="100"> | |
<CollectionView.ItemTemplate> | |
<DataTemplate> | |
<StackLayout | |
Padding="10"> | |
<material:MaterialCard | |
CornerRadius="10" | |
WidthRequest="130" | |
Elevation="2" | |
Padding="5"> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="30"/> | |
<RowDefinition Height="30"/> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="20" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> | |
<Image | |
Grid.Row="0" | |
Grid.Column="0" | |
Source="{Binding Type, Converter={converters:IconMovimentationTypeConverter}}"/> | |
<Label | |
Grid.Row="0" | |
Grid.Column="1" | |
FontSize="Medium" | |
VerticalTextAlignment="Center" | |
TextColor="{Binding Type, Converter={converters:ColorMovimentationTypeConverter}}" | |
Text="{Binding Value, StringFormat='{0:R$ ###,###,##0.00}'}"/> | |
<Label | |
Grid.Row="1" | |
Grid.Column="0" | |
Grid.ColumnSpan="2" | |
Text="{Binding Name}" | |
FontSize="Small"/> | |
</Grid> | |
</material:MaterialCard> | |
</StackLayout> | |
</DataTemplate> | |
</CollectionView.ItemTemplate> | |
</CollectionView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment