Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Add Total to a ListView Footer

rxamarxama USMember ✭✭


In this example how can I add a Total in footer?

I have my ItemSource StatusMachines

but in Footer TotalAmount is a summatory that I made in my ViewModel From Amount, it is outside of StatusMachines.

TotalAmount in footer appears as a blank Cell, I think because is not a part of StatusMachines

What can I do?

Thank you!

<Grid Grid.Row="1" Padding="0,0,0,0" RowSpacing="0">
              ItemsSource="{Binding StatusMachines}"
              SelectedItem="{Binding SelectedStatusName, Mode=TwoWay}"

          <Label Text="{Binding TotalAmount}" />

                  <Grid ColumnSpacing="1" RowSpacing="0" BackgroundColor="#7C7C7C" >
                      <ColumnDefinition Width="*" />
                      <ColumnDefinition Width="*" />

                    <Image Grid.Column="0" Source="Varios/colorceldas-gris-osc.jpeg" Aspect="Fill"/>
                    <Label Grid.Column="0"
                      Text="{Binding StatusName}"/>

                    <Image Grid.Column="1" Source="Varios/colorceldas-gris-cla.jpeg" Aspect="Fill"/>
                    <Label Grid.Column="1"
                      Text="{Binding Amount}"/>


Best Answer


Sign In or Register to comment.