<Page x:Name="Page_RapidRead"
    x:Class="Zebra_RFID_Mobile.PageRapidRead"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Zebra_RFID_Mobile"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Page.Resources>
        <Flyout x:Name="InventoryFlyout" x:Key="InventoryFlyout">
            <TextBlock x:Name="TextInventoryStatus" FontSize="22" VerticalAlignment="Center" Margin="0,0,0,10" Width="340" TextWrapping="Wrap" HorizontalAlignment="Center" Height="80"/>
        </Flyout>
    </Page.Resources>
    <Page.BottomAppBar>
        <CommandBar UseLayoutRounding="True" >
            <CommandBar.PrimaryCommands>
                <AppBarButton x:Name="AppBarButtonRapidRead" x:Uid="RapidRead" Label="RapidRead" Click="AppBarButtonGoToRapidRead">
                    <AppBarButton.Icon>
                        <BitmapIcon UriSource="Assets/tab_rapidread.png"/>
                    </AppBarButton.Icon>
                </AppBarButton>
                <AppBarButton x:Name="AppBarButtonInventory" x:Uid="Inventory" Label="Inventory" Click="AppBarButtonGoToInventory" >
                    <AppBarButton.Icon>
                        <BitmapIcon UriSource="Assets/tab_inventory.png"/>
                    </AppBarButton.Icon>
                </AppBarButton>
                <AppBarButton x:Name="AppBarButtonAccess1" x:Uid="Access" Label="Access" Click="AppBarButtonGoToAccess" >
                    <AppBarButton.Icon>
                        <BitmapIcon UriSource="Assets/tab_access.png"/>
                    </AppBarButton.Icon>
                </AppBarButton>
                <AppBarButton x:Name="s" x:Uid="Locate Tag" Label="LocateTag" Click="AppBarButtonGoToLocateTag">
                    <AppBarButton.Icon>
                        <BitmapIcon UriSource="Assets/tab_locate.png"/>
                    </AppBarButton.Icon>
                </AppBarButton>
            </CommandBar.PrimaryCommands>
        </CommandBar>
    </Page.BottomAppBar>
    <Grid>
        <TextBlock HorizontalAlignment="Left" Margin="80,10,0,0" TextWrapping="Wrap" Text="Rapid Read" VerticalAlignment="Top" FontSize="30"/>
        <AppBarButton x:Name="AppBarButtonHome" HorizontalAlignment="Left" Icon="Back" Label="Home" Margin="10,0,0,0" VerticalAlignment="Top" Width="Auto" Click="AppBarButtonHome_Click"/>
        <TextBlock x:Name="TextBlockUniqueTag" Margin="0,20,0,0" TextWrapping="Wrap" Text="{Binding UniqueCount}" VerticalAlignment="Center" FontSize="140" TextAlignment="Center" Visibility="{Binding UniqueCountVisible}"/>
        <TextBlock x:Name="TextBlockBatchModeMessage" HorizontalAlignment="Center" Margin="0" TextWrapping="Wrap" Text="Inventory is running in batch mode" VerticalAlignment="Center" Width="344" FontSize="22" TextAlignment="Center" Visibility="{Binding BatchModeEnable}"/>

        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Height="29" Width="115" FontSize="22" Text="Total Reads" Margin="10,80,0,0"/>
        <TextBlock HorizontalAlignment="Left" Margin="250,80,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="29" Width="99" FontSize="22" Text="Read Rate"/>
        <TextBlock x:Name="TextBlockReadRate" HorizontalAlignment="Left" Margin="260,114,0,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="22" Text="{Binding ReadRate}" TextAlignment="Center" Width="60"/>
        <TextBlock x:Name="TextBlockToatalTag" HorizontalAlignment="Left" Margin="10,114,0,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="22" Text="{Binding ReadTags}" TextAlignment="Center" Width="84"/>

        <Button x:Name="ButtonStart" Content="{Binding STARTSTATUS}" HorizontalAlignment="Center" Margin="0,0,0,20" VerticalAlignment="Bottom" Width="340" Click="ButtonStart_Click" Height="60" FontSize="22" FlyoutBase.AttachedFlyout="{StaticResource InventoryFlyout}"/>
        <TextBlock HorizontalAlignment="Left" Margin="120,80,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="29" Width="129" FontSize="22" Text="  Read Time"/>
        <TextBlock x:Name="TextBlockReadTime" HorizontalAlignment="Left" Margin="140,114,0,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="22" Text="{Binding ReadTime}" TextAlignment="Center" Width="90"/>
        <TextBlock x:Name="TextBlockReadRate_ts" HorizontalAlignment="Left" Margin="320,114,10,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="22" Text="t/s" TextAlignment="Center" Width="30"/>
        <Button x:Name="Batterybutton" HorizontalAlignment="Left" Margin="320,0,0,0" VerticalAlignment="Top" Width="40" Height="55" Background="{x:Null}" Click="Batterybutton_Click">
            <Image x:Name="BatteryDPO" Source="{Binding BatteryDPOImage}"/>
        </Button>
    </Grid>
</Page>
