<Page x:Name="Page_Save"
    x:Class="Zebra_RFID_Mobile.PageSave"
    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="Flyout1" x:Key="FlyoutBase1" >
            <Grid Height="100" Width="250">
                <TextBlock x:Name="TextFlyout" FontSize="14" Margin="0,0,-124,62">
                   This will save the following settings
                </TextBlock>
                <Button x:Name="ButtonOK" Content="OK , Save" Margin="60,28,0,15" Width="118" Click="Button_Click">
                </Button>
                <ProgressBar x:Name="bar1" Opacity="0" IsIndeterminate="True" Margin="20,0,0,45"/>
            </Grid>
        </Flyout>
    </Page.Resources>
    <Grid>
        <TextBlock HorizontalAlignment="Left" Margin="80,10,0,0" TextWrapping="Wrap" Text="Save Configuration" VerticalAlignment="Top" FontSize="30"/>
        <AppBarButton HorizontalAlignment="Left" Icon="Back" Label="Settings" Margin="10,0,0,0" VerticalAlignment="Top" Width="Auto" Click="AppBarButton_Click"/>
        <ScrollViewer Margin="0,61,0,80" BorderThickness="0" Height="460">
            <Grid Margin="0" Width="350" Height="800">
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition Height="2.0*"/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition Height="2.0*"/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition Height="3.0*"/>
                    <RowDefinition/>
                    <RowDefinition Height="2.0*"/>
                    <RowDefinition/>
                    <RowDefinition Height="2.0*"/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition Height="2.0*"/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <TextBlock HorizontalAlignment="Left" Margin="0" TextWrapping="Wrap" Text="ANTENNA" VerticalAlignment="Top" Height="42" FontSize="22" FontWeight="Bold" Grid.RowSpan="2" Width="134"/>
                <TextBlock HorizontalAlignment="Left" Margin="0" TextWrapping="Wrap" Text="Antenna Power" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="1"/>
                <TextBlock x:Name="TextBlockAntennaPower" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="1"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Link Profile" VerticalAlignment="Top" Height="40" FontSize="20" MaxLines="2" Grid.Row="2"/>
                <TextBlock x:Name="TextBlockLinkProfile" HorizontalAlignment="Left" Margin="0,0.167,-120,0" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" MaxLines="2" Grid.Column="1" Grid.Row="2" Width="200" Grid.RowSpan="2"/>
                <TextBlock HorizontalAlignment="Left" Margin="0,0.333,0,0" TextWrapping="Wrap" Text="SINGULATION" VerticalAlignment="Top" Height="42" FontSize="22" FontWeight="Bold" Grid.RowSpan="2" Width="150" Grid.Row="3"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Session" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="4"/>
                <TextBlock x:Name="TextBlockSession" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="4"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Tag Population" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="5"/>
                <TextBlock x:Name="TextBlockTagPopulation" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="5"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Inventory State" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="6"/>
                <TextBlock x:Name="TextBlockInventoryState" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="6"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="SL Flag" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="7"/>
                <TextBlock x:Name="TextBlockSLFlag" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="7"/>
                <TextBlock HorizontalAlignment="Left" Margin="0" TextWrapping="Wrap" Text="TAG REPORT" VerticalAlignment="Top" Height="42" FontSize="22" FontWeight="Bold" Grid.RowSpan="2" Width="134" Grid.Row="8"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="PC" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="9"/>
                <TextBlock x:Name="TextBlockPC" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="9"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="RSSI" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="10"/>
                <TextBlock x:Name="TextBlockRSSI" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="10"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Phase" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="11"/>
                <TextBlock x:Name="TextBlockPhase" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="11"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Channel Index" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="12"/>
                <TextBlock x:Name="TextBlockChannelIndex" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="12"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Tag Seen Count" VerticalAlignment="Top" Height="40" FontSize="20" Grid.Row="13"/>
                <TextBlock x:Name="TextBlockTagSeenCount" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="13"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Report Unique Tags" VerticalAlignment="Top" Height="70" FontSize="20" Grid.Row="14"/>
                <TextBlock x:Name="TextBlockReportUniqueTags" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="14"/>
                <TextBlock HorizontalAlignment="Left" Margin="0,0.333,0,-12" TextWrapping="Wrap" Text="BATCH MODE" VerticalAlignment="Top" Height="42" FontSize="22" FontWeight="Bold" Width="150" Grid.Row="15"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Batch Mode" VerticalAlignment="Top" Height="70" FontSize="20" Grid.Row="16"/>
                <TextBlock x:Name="TextBlockBatchMode" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="16"/>
                <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="POWER MANAGEMENT" VerticalAlignment="Top" Height="42" FontSize="22" FontWeight="Bold" Width="254" Grid.Row="17" RenderTransformOrigin="0.785,0.46" Grid.ColumnSpan="2" Grid.RowSpan="2" Margin="0,0,-24,0"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Dynamic Power" VerticalAlignment="Top" Height="70" FontSize="20" Grid.Row="18"/>
                <TextBlock x:Name="TextBlockDynamicPower" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="18"/>
                <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="START \ STOP TRIGGERS" VerticalAlignment="Top" Height="42" FontSize="22" FontWeight="Bold" Width="254" Grid.Row="19" RenderTransformOrigin="0.785,0.46" Grid.ColumnSpan="2" Grid.RowSpan="2" Margin="0,0,-24,0"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Start Trigger" VerticalAlignment="Top" Height="70" FontSize="20" Grid.Row="20"/>
                <TextBlock x:Name="TextBlockStartTrigger" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="20"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Stop Trigger" VerticalAlignment="Top" Height="70" FontSize="20" Grid.Row="21"/>
                <TextBlock x:Name="TextBlockStopTrigger" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="21"/>
                <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="BEEPER" VerticalAlignment="Top" Height="42" FontSize="22" FontWeight="Bold" Width="254" Grid.Row="22" RenderTransformOrigin="0.785,0.46" Grid.ColumnSpan="2" Grid.RowSpan="2" Margin="0,0,-24,0"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Sled Beeper" VerticalAlignment="Top" Height="70" FontSize="20" Grid.Row="23"/>
                <TextBlock x:Name="TextBlockSledBeeper" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="23"/>
                <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Beeper Volume" VerticalAlignment="Top" Height="70" FontSize="20" Grid.Row="24"/>
                <TextBlock x:Name="TextBlockBeeperVolume" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Grid.Column="1" Grid.Row="24"/>
            </Grid>
        </ScrollViewer>
        <Button x:Name="ButtonSave" Content="SAVE" HorizontalAlignment="Center" Margin="0,0,0,15" VerticalAlignment="Bottom" Width="340" Height="60" Flyout="{StaticResource FlyoutBase1}" Click="ButtonSave_CLick" FontSize="22"/>
    </Grid>
</Page>
