<Window x:Class="Impinj.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Impinj ItemEncodeVerify - Trigger Profiler"
        Icon="img\gears.ico"
        Height="536"
        Width="900"
        xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf"
        Closing="Window_Closing">
    <DockPanel>
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="File">
                <MenuItem Header="Save" Click="FileSavePlot"/>
                <MenuItem Header="Exit" Click="FileExit"/>
            </MenuItem>
        </Menu>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="80" />
            <RowDefinition Height="*" />
            <RowDefinition Height="25" />
        </Grid.RowDefinitions>
            <GroupBox Header="Device Configuration">
                <StackPanel Orientation="Horizontal">
                    <TextBox Name="ReaderHostnameTextBox"
                             Margin="5"
                             Width="150" Height="23"
                             VerticalAlignment="Top"
                             FontFamily="Consolas" />
                    <Button Name="connectButton"
                            Content="Connect"
                            Margin="5"
                            Height="23" Width="75" 
                            VerticalAlignment="Top" 
                            VerticalContentAlignment="Center"
                            Click="connectButton_Click" />
                    <Button Name="startProfilerButton"
                            Content="Start Profiler"
                            Margin="5" 
                            Height="23" Width="100" 
                            VerticalAlignment="Top"
                            Click="startTriggerProfilerButton_Click"
                            IsEnabled="False" />
                    <GridSplitter Width="3"/>
                    <StackPanel Orientation="Vertical">
                        <TextBox Name="txPowerTextBox" Margin="5" Width="90" Height="23" FontFamily="Consolas" Text="20" IsEnabled="False" ToolTip="Antenna Transmit Power (+10.0 to +30.0 dBm)" />
                        <Label Content="Tx Power" Width="90" HorizontalContentAlignment="Center"/>
                    </StackPanel>
                    <GridSplitter Width="3"/>
                    <StackPanel Orientation="Vertical">
                        <TextBox Margin="5" Padding="3" Name="rxSensitivityTextBox"  Width="90" FontFamily="Consolas" Text="-70" IsEnabled="False" ToolTip="Tag RSSI Threshold" />
                        <Label Content="Rx Sensitivity" Width="90" HorizontalContentAlignment="Center"/>
                    </StackPanel>
                    <GridSplitter Width="3"/>
                    <StackPanel>
                        <TextBox Margin="5" Padding="3" Name="fixedFrequencyTextBox" Width="90" FontFamily="Consolas" Text="" IsEnabled="False" ToolTip="Frequency in kHz"/>
                        <Label Content="Fixed Frequency" Name="label3" Width="100" HorizontalContentAlignment="Center"/>
                    </StackPanel>
                    <GridSplitter Width="3"/>
                </StackPanel>
            </GroupBox>
            <oxy:PlotView Model="{Binding Model}" Grid.Row="1" Name="fovPlot" BorderThickness="1" FontSize="10" PlotMargins="10" LegendFontSize="10" Padding="8"></oxy:PlotView>
        <StatusBar Name="mainStatusBar" Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Focusable="False"  FontFamily="Calibri" FontSize="12">
            <StatusBarItem Name="connectionStatusBarItem" Content="Not Connected"/>
            <StatusBarItem Name="statusLabel" Content="" />
        </StatusBar>
       </Grid>
    </DockPanel>
</Window>
 