Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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
You can’t perform that action at this time.