<?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.System.SyncPage"
             Title="Adatok szinkronizálása"
             BackgroundColor="#f0f0f0">
    <ScrollView>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Frame 
                    Grid.Row="1"    
                    BorderColor="Gray" 
                    CornerRadius="20"
                    Padding="30" 
                    Margin="1" 
                    HasShadow="True"
                    HorizontalOptions="Center"
                    VerticalOptions="Center"
                    WidthRequest="{OnPlatform Android=350, iOS=350, WinUI=400, MacCatalyst=400}"
                    MaximumWidthRequest="500">
            <VerticalStackLayout Margin="10,10,10,0">
                <Label x:Name="progressLabel" Text="Folyamatjelző" FontSize="Medium" HorizontalOptions="Center" />
                <ProgressBar x:Name="progressBar" WidthRequest="300" HeightRequest="40" />
                <Button x:Name="SyncBtn" Text="Adat szinkronizálás" Clicked="OnSyncClicked" Margin="10,10,10,10" />
                <ActivityIndicator x:Name="LoadingIndicator" 
                   IsRunning="False" 
                   IsVisible="False"
                   VerticalOptions="Center" 
                   HorizontalOptions="Center" />
            </VerticalStackLayout>
        </Frame>
        </Grid>
    </ScrollView>
</ContentPage>