Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<material:MaterialCard
CornerRadius="20"
Elevation="2"
HorizontalOptions="FillAndExpand">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackLayout Grid.Row="0">
<Label
Grid.Row="0"
FontSize="Small"
HorizontalTextAlignment="Center"
Text="Saldo" />
<Label
Grid.Row="1"
FontSize="Title"
FontAttributes="Bold"
TextColor="{StaticResource ColorRevenue}"
HorizontalTextAlignment="Center"
Text="{Binding Balance, StringFormat='{0:R$ ###,###,##0.00}'}" />
</StackLayout>
<Grid
Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<StackLayout
Grid.Column="0"
Grid.Row="0"
Orientation="Horizontal">
<Image
Source="arrow_down"/>
<StackLayout>
<Label
FontSize="Micro"
TextColor="Gray"
Text="Receitas"/>
<Label
FontSize="Large"
TextColor="{StaticResource ColorRevenue}"
Text="{Binding Revenues, StringFormat='{0:R$ ###,###,##0.00}'}" />
</StackLayout>
</StackLayout>
<StackLayout
Grid.Column="1"
Grid.Row="0"
Orientation="Horizontal">
<Image
Source="arrow_up"/>
<StackLayout>
<Label
FontSize="Micro"
TextColor="Gray"
Text="Despesas"/>
<Label
FontSize="Large"
TextColor="{StaticResource ColorExpense}"
Text="{Binding Expenses, StringFormat='{0:R$ ###,###,##0.00}'}" />
</StackLayout>
</StackLayout>
</Grid>
</Grid>
</material:MaterialCard>
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.