<Page x:Name="Page_StartStop"
    x:Class="Zebra_RFID_Mobile.PageStartStop"
    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}">
    <Grid>
        <TextBlock HorizontalAlignment="Left" Margin="80,10,0,0" TextWrapping="Wrap" Text="Start\Stop Triggers" VerticalAlignment="Top" FontSize="30"/>
        <AppBarButton HorizontalAlignment="Left" Icon="Back" Label="Settings" Margin="10,0,0,0" VerticalAlignment="Top" Width="Auto" Click="AppBarButton_Click"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,80,0,0" TextWrapping="Wrap" Text="Start" VerticalAlignment="Top" Height="30" Width="173" FontSize="24" FontWeight="Bold"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,120,0,0" TextWrapping="Wrap" Text="Start Trigger" VerticalAlignment="Top" Height="30" FontSize="22" />
        <TextBlock HorizontalAlignment="Left" Margin="10,320,0,0" TextWrapping="Wrap" Text="Stop" VerticalAlignment="Top" Height="30" Width="173" FontSize="22" FontWeight="Bold"/>
        <TextBlock HorizontalAlignment="Left" Margin="10,360,0,0" TextWrapping="Wrap" Text="Stop Trigger" VerticalAlignment="Top" FontSize="22" />
        <ComboBox x:Name="combostart" HorizontalAlignment="Left" Margin="180,120,0,0" VerticalAlignment="Top" Width="165" AllowDrop="True" PlaceholderText="Select" SelectionChanged="combostart_SelectionChanged" Canvas.ZIndex="1"/>
        <StackPanel x:Name="StackStartHandheldTriggers" Margin="180,180,0,0" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top" Visibility="Collapsed">
            <RadioButton x:Name="CheckBoxStartTriggerPressed" Content="Trigger Press"  HorizontalAlignment="Left" VerticalAlignment="Top" GroupName="StartTriggers" IsChecked="True"/>
            <RadioButton x:Name="CheckBoxStartTriggerReleased" Content="Trigger Release" HorizontalAlignment="Left" VerticalAlignment="Top" GroupName="StartTriggers" Margin="0,10,0,0"/>
        </StackPanel>
        <Grid x:Name="GridStartPeriodic" Margin="10,188,10,0" VerticalAlignment="Top" Visibility="Collapsed">
            <TextBlock HorizontalAlignment="Left" Margin="0,3,0,0" TextWrapping="Wrap" Text="Period (ms)" VerticalAlignment="Top" FontSize="22"/>
            <TextBox x:Name="TextBoxStartDuration" HorizontalAlignment="Left" Margin="170,0,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="161" Background="#FFF4F4F5" Opacity="0.5" InputScope="Number" Text="10000" MaxLength="10"/>
        </Grid>
        <Grid x:Name="GridStopDuration" Margin="10,440,10,0" Visibility="Collapsed">
            <TextBlock HorizontalAlignment="Left" Margin="0,3,0,0" TextWrapping="Wrap" Text="Duration (ms)" VerticalAlignment="Top" Height="30" Width="173" FontSize="22"/>
            <TextBox x:Name="TextStopDuration" HorizontalAlignment="Left" Margin="170,0,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="165" Height="30" Background="#FFF4F4F5" Opacity="0.5" InputScope="Number" Text="10000" MaxLength="10"/>
        </Grid>
        <Grid x:Name="GridTotalCount" Margin="10,420,10,0" Visibility="Collapsed">
            <TextBlock HorizontalAlignment="Left" Margin="0" TextWrapping="Wrap" Text="Tag Observation" VerticalAlignment="Top" FontSize="22"/>
            <TextBox x:Name="TextStopTagcount" HorizontalAlignment="Left" Margin="170,0,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="165" Background="#FFF4F4F5" Opacity="0.5" InputScope="Number" Text="100" MaxLength="10"/>
            <TextBlock HorizontalAlignment="Left" Margin="0,50,0,0" TextWrapping="Wrap" Text="Duration (ms)" VerticalAlignment="Top" FontSize="22"/>
            <TextBox x:Name="TextStopDurationTagCount" HorizontalAlignment="Left" Margin="170,50,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="165" Background="#FFF4F4F5" Opacity="0.5" InputScope="Number" Text="10000" MaxLength="10"/>
        </Grid>
        <Grid x:Name="GridRoundCount" Margin="10,420,10,0" Visibility="Collapsed">
            <TextBlock HorizontalAlignment="Left" Margin="0,3,0,0" TextWrapping="Wrap" Text="No. of attempts" VerticalAlignment="Top" Height="30" Width="180" FontSize="22"/>
            <TextBox x:Name="TextInventoryRoundcount" HorizontalAlignment="Left" Margin="180,0,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="160" Height="30" Background="#FFF4F4F5" Opacity="0.5" InputScope="Number" Text="10" MaxLength="10"/>
            <TextBlock HorizontalAlignment="Left" Margin="0,50,0,0" TextWrapping="Wrap" Text="Duration (ms)" VerticalAlignment="Top" FontSize="22" Width="165" Height="50"/>
            <TextBox x:Name="TextStopDurationInventoryCount" HorizontalAlignment="Left" Margin="180,50,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="160" Height="30" Background="#FFF4F4F5" Opacity="0.5" InputScope="Number" Text="10000" MaxLength="10"/>
        </Grid>
        <ComboBox x:Name="combostop" HorizontalAlignment="Left" Margin="180,360,0,0" VerticalAlignment="Top" Width="165" PlaceholderText="Select" SelectionChanged="combostop_SelectionChanged" Canvas.ZIndex="1" />
        <Grid x:Name="GridStopHandheldTriggers" Margin="0,420,0,0" Visibility="Collapsed" >
            <StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="180,0,0,0">
                <RadioButton x:Name="CheckBoxStopTriggerPressed" Content="Trigger Press"  HorizontalAlignment="Left" VerticalAlignment="Top" GroupName="StopTriggers"/>
                <RadioButton x:Name="CheckBoxStopTriggerReleased" Content="Trigger Release" HorizontalAlignment="Left" VerticalAlignment="Top" GroupName="StopTriggers" IsChecked="True" Margin="0,10,0,0"/>
            </StackPanel>
            <Grid x:Name="GridStopHandheld" Margin="0,100,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">
                <TextBlock HorizontalAlignment="Left" Margin="10,0,0,0" TextWrapping="Wrap" Text="Duration (ms)" VerticalAlignment="Top" FontSize="22"/>
                <TextBox x:Name="TextStopDurationTrigger" Margin="180,0,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="165" Height="30" Background="#FFF4F4F5" Opacity="0.5" InputScope="Number" Text="10000" HorizontalAlignment="Left" MaxLength="10"/>
            </Grid>
        </Grid>
    </Grid>
</Page>
