<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="WorkFlowCheck.MAUI.Pages.NFC.NFCTestPage"
             BackgroundColor="#f0f0f0"
             Title="NFC teszt ">
    <Shell.TitleView>
        <Grid Padding="2" VerticalOptions="Center">
            <Label Text="NFC olvasási teszt"
           FontSize="22"
           FontAttributes="Bold"
           VerticalOptions="Center"
           HorizontalOptions="Start" />
            <HorizontalStackLayout 
        VerticalOptions="Center" 
        HorizontalOptions="End" 
        Spacing="5">
                <Frame CornerRadius="1"
           Padding="5"
           HasShadow="True"
           VerticalOptions="Center"
           HorizontalOptions="End">
                    <Label x:Name="DeviceId" 
                   FontSize="10"
                   TextColor="Black"/>
                </Frame>
                <Frame CornerRadius="1"
           Padding="5"
           HasShadow="True"
           VerticalOptions="Center"
           HorizontalOptions="End">
                    <Label x:Name="UserInfo" 
                   FontSize="10"
                   FontAttributes="Bold"
                   TextColor="Black"/>
                </Frame>
            </HorizontalStackLayout>
        </Grid>
    </Shell.TitleView>
    <RefreshView x:Name="refreshView" Command="{Binding RefreshCommand}" IsRefreshing="{Binding IsRefreshing}">
        <CollectionView x:Name="NFCDataListCollection" ItemsSource="{Binding NFCDataList}">
            <CollectionView.ItemTemplate>
                <DataTemplate>
                    <Frame BorderColor="Gray" Padding="10" Margin="5" HasShadow="True">
                        <StackLayout>
                            <Label Text="{Binding SerialNumber}" FontSize="16" FontAttributes="Bold" />
                            <Label Text="{Binding DateReceived}" FontSize="14" />
                        </StackLayout>
                    </Frame>
                </DataTemplate>
            </CollectionView.ItemTemplate>
        </CollectionView>
    </RefreshView>
</ContentPage>