[text] aff

Viewer

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
  3.              xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4.              x:Class="bmicalculator.Record"
  5.              Title="Record">
  6.     <ScrollView>
  7.     <VerticalStackLayout>
  8.         
  9.             <!--<Label
  10.                x:Name="displayRecord"
  11.                HorizontalTextAlignment="Center"
  12.                VerticalTextAlignment="Center"
  13.                />-->
  14.             <CollectionView x:Name="displayRecord" ItemsSource="{Binding DateRecorded}">
  15.                 <CollectionView.Header>
  16.                     <Grid ColumnDefinitions="10* , 8* , 10* , 10*">
  17.                         <Label Grid.Column="0" Text="Date"  FontAttributes="Bold" Padding="5" BackgroundColor="Aquamarine"/>
  18.                         <Label Grid.Column="1" Text="Weight"  FontAttributes="Bold" Padding="5" BackgroundColor="Aquamarine"/>
  19.                         <Label Grid.Column="2" Text="BMI Result"  FontAttributes="Bold" Padding="5" BackgroundColor="Aquamarine"/>
  20.                         <Label Grid.Column="3" Text="BMI Status"  FontAttributes="Bold" Padding="5" BackgroundColor="Aquamarine" />
  21.                     </Grid>
  22.                 </CollectionView.Header>
  23.                 <CollectionView.ItemTemplate>
  24.                     <DataTemplate>
  25.                         <SwipeView>
  26.                             <Grid ColumnDefinitions="14* , 8* , 10* , 10*">
  27.                                 <Label Grid.Column="0" Text="{Binding DateRecorded}"  />
  28.                                 <Label Grid.Column="1" Text="{Binding Weight}"  />
  29.                                 <Label Grid.Column="2" Text="{Binding BmiResult}"  />
  30.                                 <Label Grid.Column="3" Text="{Binding BmiStatus}"  />
  31.                             </Grid>
  32.                         </SwipeView>
  33.                     </DataTemplate>
  34.                 </CollectionView.ItemTemplate>
  35.             </CollectionView>
  36.  
  37.     </VerticalStackLayout>
  38.     </ScrollView>
  39.         
  40.     
  41. </ContentPage>

Editor

You can edit this paste and save as new:


File Description
  • aff
  • Paste Code
  • 08 May-2024
  • 2.04 Kb
You can Share it: