<Page x:Name="Page_Settings"
    x:Class="Zebra_RFID_Mobile.PageSettings"
    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"
    NavigationCacheMode="Enabled"     
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Grid>
        <TextBlock HorizontalAlignment="Left" Margin="80,10,0,0" TextWrapping="Wrap" Text="Settings" VerticalAlignment="Top" FontSize="30"/>
        <AppBarButton HorizontalAlignment="Left" Icon="Back" Label="Home" Margin="10,0,0,0" VerticalAlignment="Top" Width="Auto" Click="AppBarButton_Click"/>
        <ListView x:Name="list1" HorizontalAlignment="Left" Margin="10,70,0,0" SelectionChanged="list1_SelectionChanged">
            <ListViewItem x:Name="listitem1" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="45" Source="Assets/ReaderList.png"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Reader List" VerticalAlignment="Top" Height="35" Width="227" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem2" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="45" Source="Assets/Connection.png"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Application" VerticalAlignment="Top" Height="35" Width="227" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem3" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="329">
                    <Image HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="45" Source="Assets/AntennaConfig.png"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Antenna" VerticalAlignment="Top" Height="35" Width="241" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem4" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="45" Source="Assets/Singulation.png"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Singulation Control" VerticalAlignment="Top" Height="35" Width="248" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem5" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="45" Source="Assets/StartStop.png"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Start\Stop Triggers" VerticalAlignment="Top" Height="35" Width="227" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem6" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="45" Source="Assets/TagReporting.png" Margin="0"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Tag Reporting " VerticalAlignment="Top" Height="35" Width="227" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem7" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image HorizontalAlignment="Center" VerticalAlignment="Center" Width="45" Source="Assets/Regulatory.png" Height="35"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Regulatory" VerticalAlignment="Top" Height="35" Width="227" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem8" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image VerticalAlignment="Center" Source="Assets/Battery.png" Width="45" HorizontalAlignment="Center" Height="35"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Battery" VerticalAlignment="Top" Height="35" Width="227" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem9" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image x:Name="DPOImage" Height="35" VerticalAlignment="Center" Width="45" Source="{Binding DPOImage}" Margin="0" HorizontalAlignment="Center"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Power Management" VerticalAlignment="Top" Height="35" Width="227" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem10" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="45" Source="Assets/Beeper.png"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Beeper" VerticalAlignment="Top" Height="35" Width="227" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
            <ListViewItem x:Name="listitem11" FontSize="22" Height="45">
                <StackPanel Orientation="Horizontal" Height="35" Width="305">
                    <Image HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="45" Source="Assets/Save.png"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Save Configuration" VerticalAlignment="Top" Height="35" Width="227" FontSize="22" Margin="10,0,0,0"/>
                </StackPanel>
            </ListViewItem>
        </ListView>
        <ProgressRing x:Name="PopUpSettings" IsEnabled="{Binding SettingsStatusShow}" IsEnabledChanged="ProgressRing_IsEnabledChanged" IsActive="{Binding SettingsStatusShow}" Margin="0,0,0,20" Width="40" Height="40" HorizontalAlignment="Center" VerticalAlignment="Bottom">
            <FlyoutBase.AttachedFlyout>
                <Flyout x:Name="SettingsStatusFlyout" >
                    <TextBlock x:Name="textSettingsStatusLabel"  TextWrapping="Wrap" FontSize="22" HorizontalAlignment="Left" Text="{Binding SettingsStatus}"  Margin="0" TextAlignment="Center" VerticalAlignment="Top" Width="340" Height="80"/>
                </Flyout>
            </FlyoutBase.AttachedFlyout>
        </ProgressRing>
    </Grid>
</Page>
