<Page x:Name="Page_Filters"
    x:Class="Zebra_RFID_Mobile.PageFilters"
    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.BottomAppBar>
        <CommandBar >
            <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="AppBarButtonAccess" 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" VerticalAlignment="Top" FontSize="30" Text="Pre Filters"/>
        <Pivot Margin="0,60,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" >
            <PivotItem Header="Filter 1" Margin="0,0,10,25">
                <Grid Margin="10,0,0,0">
                    <ToggleSwitch x:Name="ToggelFilter1" Header="Enable Filter 1" HorizontalAlignment="Left" Margin="0,300,0,0" VerticalAlignment="Top" OffContent="Disabled" OnContent="Enabled"/>
                    <TextBlock HorizontalAlignment="Left" Margin="0,60,0,0" TextWrapping="Wrap" Text="Memory Bank" VerticalAlignment="Top" Height="26" FontSize="20"/>
                    <TextBlock HorizontalAlignment="Left" Margin="0,240,0,0" TextWrapping="Wrap" Text="Target" VerticalAlignment="Top" Height="26" FontSize="20"/>
                    <TextBlock HorizontalAlignment="Left" Margin="0,180,0,0" TextWrapping="Wrap" Text="Action" VerticalAlignment="Top" Height="26" FontSize="20"/>
                    <TextBlock HorizontalAlignment="Left" Margin="0,120,0,0" TextWrapping="Wrap" Text="Offset (words)" VerticalAlignment="Top" Height="26" FontSize="20"/>
                    <TextBox x:Name="TextBoxMatchPatternFilter1" HorizontalAlignment="Left" Margin="0,0,0,0" TextWrapping="Wrap" VerticalAlignment="Top" RenderTransformOrigin="0.59,0.513" Width="340" FontSize="18" Background="#FFF4F4F5" Opacity="0.5" PlaceholderText="Tag Pattern" MaxLength="256" Grid.ColumnSpan="2"/>
                    <TextBox x:Name="TextBoxFilter1Offset" HorizontalAlignment="Left" Margin="180,120,0,-1" TextWrapping="Wrap" VerticalAlignment="Top" RenderTransformOrigin="0.59,0.513" Width="160" FontSize="18" Height="33"  Background="#FFF4F4F5" Opacity="0.5" InputScope="Number" MaxLength="4" Text="0" Grid.ColumnSpan="2"/>
                    <ComboBox x:Name="ComboFilter1Target" HorizontalAlignment="Left" Margin="180,242,0,0" VerticalAlignment="Top" PlaceholderText="Select" FontSize="16" Width="160" Grid.ColumnSpan="2" />
                    <ComboBox x:Name="ComboFilter1Action" HorizontalAlignment="Left" Margin="180,180,0,0" VerticalAlignment="Top" PlaceholderText="Select" FontSize="18" Width="160" Grid.ColumnSpan="2" />
                    <ComboBox x:Name="ComboFilter1MemoryBank" HorizontalAlignment="Left" Margin="180,60,0,0" VerticalAlignment="Top" PlaceholderText="Select " AllowDrop="True" Width="160" Grid.ColumnSpan="2" />
                </Grid>
            </PivotItem>

            <PivotItem Header="Filter 2" Margin="0,0,10,25">
                <Grid Margin="10,0,0,0">
                    <ToggleSwitch x:Name="ToggelFilter2" Header="Enable Filter 2" HorizontalAlignment="Left" Margin="0,300,0,0" VerticalAlignment="Top" OffContent="Disabled" OnContent="Enabled"/>
                    <TextBlock HorizontalAlignment="Left" Margin="0,60,0,0" TextWrapping="Wrap" Text="Memory Bank" VerticalAlignment="Top" Height="26" FontSize="20"/>
                    <TextBlock HorizontalAlignment="Left" Margin="0,240,0,0" TextWrapping="Wrap" Text="Target" VerticalAlignment="Top" Height="26" FontSize="20"/>
                    <TextBlock HorizontalAlignment="Left" Margin="0,180,0,0" TextWrapping="Wrap" Text="Action" VerticalAlignment="Top" Height="26" FontSize="20"/>
                    <TextBlock HorizontalAlignment="Left" Margin="0,120,0,0" TextWrapping="Wrap" Text="Offset (words)" VerticalAlignment="Top" Height="26" FontSize="20"/>
                    <TextBox x:Name="TextBoxMatchPatternFilter2" HorizontalAlignment="Left" Margin="0,0,0,0" TextWrapping="Wrap" VerticalAlignment="Top" RenderTransformOrigin="0.59,0.513" Width="340" FontSize="18" Background="#FFF4F4F5" Opacity="0.5" PlaceholderText="Tag Pattern" MaxLength="256" Grid.ColumnSpan="2"/>
                    <TextBox x:Name="TextBoxFilter2Offset" HorizontalAlignment="Left" Margin="180,120,0,-1" TextWrapping="Wrap" VerticalAlignment="Top" RenderTransformOrigin="0.59,0.513" Width="160" FontSize="18" Height="33"  Background="#FFF4F4F5" Opacity="0.5" InputScope="Number" MaxLength="4" Text="0" Grid.ColumnSpan="2"/>
                    <ComboBox x:Name="ComboFilter2Target" HorizontalAlignment="Left" Margin="180,242,0,0" VerticalAlignment="Top" PlaceholderText="Select" FontSize="16" Width="160" Grid.ColumnSpan="2" />
                    <ComboBox x:Name="ComboFilter2Action" HorizontalAlignment="Left" Margin="180,180,0,0" VerticalAlignment="Top" PlaceholderText="Select" FontSize="18" Width="160" Grid.ColumnSpan="2" />
                    <ComboBox x:Name="ComboFilter2MemoryBank" HorizontalAlignment="Left" Margin="180,60,0,0" VerticalAlignment="Top" PlaceholderText="Select " AllowDrop="True" Width="160" Grid.ColumnSpan="2" />
                </Grid>
            </PivotItem>

        </Pivot>
        <AppBarButton HorizontalAlignment="Left" Label="Home"  Icon="Back" Margin="0" VerticalAlignment="Top" Width="75" Click="AppBarButton_Click"/>
        <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>
