<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="QFDT_Components.RFPathAndRadioConfiguration" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:qfdt_components="clr-namespace:QFDT_Components;assembly=QFDT_Components">
  <StackPanel>
    <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
      <Label Content="{DynamicResource Band}" HorizontalAlignment="Left" VerticalAlignment="Center" Width="50" Margin="5,0,0,0" />
      <ComboBox Name="comboBxQSCBand" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0" Width="220" SelectionChanged="TechBand_SelectionChanged" />
    </StackPanel>
    <Label Name="lbAvailRFPath" Content="{DynamicResource AvailRFPath}" Margin="5,5,0,0" HorizontalAlignment="Left" />
    <Grid Name="pnlFilter" Visibility="Visible" Margin="0,-10,0,0" Width="520" HorizontalAlignment="Left">
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="Auto" />
      </Grid.ColumnDefinitions>
      <StackPanel Orientation="Horizontal" Grid.Column="0" Margin="0,-10,0,0">
        <TextBlock Text="CAT" Margin="5,0,0,0" ToolTip="Calibration Action Type" VerticalAlignment="Center" />
        <ComboBox Name="cbCalActionType" Margin="5,0,0,0" Width="45" VerticalAlignment="Center" DropDownClosed="FilterPath_SelectionChanged">
          <ComboBoxItem Content="NC" />
          <ComboBoxItem Content="FC" />
          <ComboBoxItem Content="OC" />
        </ComboBox>
        <TextBlock Text="ACS" Margin="5,0,0,0" ToolTip="Antenna Config State" VerticalAlignment="Center" />
        <ComboBox Name="cbAntConfigState" Margin="5,0,0,0" Width="35" VerticalAlignment="Center" DropDownClosed="FilterPath_SelectionChanged">
          <ComboBoxItem Content="0" />
          <ComboBoxItem Content="1" />
          <ComboBoxItem Content="2" />
          <ComboBoxItem Content="3" />
        </ComboBox>
        <TextBlock Text="AN" ToolTip="Antenna Number" Margin="5,0,0,0" VerticalAlignment="Center" />
        <ComboBox Name="cbAntNumber" Width="35" Margin="5,0,0,0" VerticalAlignment="Center" DropDownClosed="FilterPath_SelectionChanged">
          <ComboBoxItem Content="0" />
          <ComboBoxItem Content="1" />
          <ComboBoxItem Content="2" />
          <ComboBoxItem Content="3" />
          <ComboBoxItem Content="4" />
          <ComboBoxItem Content="5" />
        </ComboBox>
      </StackPanel>
      <Button Name="btnUnFilterQueryResults" Content=" Reset " ToolTip="Filter the paths" VerticalAlignment="Center" Grid.Column="2" Margin="5,-10,0,0" Click="btnUnFilterQueryResults_Click" />
    </Grid>
    <ListBox Name="lbx_Available_RF_Path" Height="85" Width="520" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,5,0,0" SelectionChanged="Path_SelectionChanged" />
    <DataGrid Name="gridQueryResult" AutoGenerateColumns="False" HorizontalAlignment="Left" Margin="10,-85,0,0" Height="85" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectionChanged="gridQueryResult_SelectionChanged">
      <DataGrid.Columns>
        <DataGridTextColumn Header="PathID" IsReadOnly="True" Binding="{Binding Path=pathID}" />
        <DataGridTextColumn Header="Type" IsReadOnly="True" Binding="{Binding Path=path_type}" />
        <DataGridTextColumn Header="RFM Device" IsReadOnly="True" Binding="{Binding Path=rfmpath.rfmDevice}" />
        <DataGridTextColumn Header="Sig Path" IsReadOnly="True" Binding="{Binding Path=rfmpath.sigPath}" />
        <DataGridTextColumn Header="SwitchPath" IsReadOnly="True" Binding="{Binding Path=rfmpath.antennaSwitchPath}" />
        <DataGridTextColumn Header="PLL" IsReadOnly="True" Binding="{Binding Path=rfmpath.pllId}" />
        <DataGridTextColumn Header="Assoc.Rx" IsReadOnly="True" Binding="{Binding Path=ASSOCIATED_RX_PATH}" />
        <DataGridTextColumn Header="Assoc.Tx" IsReadOnly="True" Binding="{Binding Path=ASSOCIATED_TX_PATH}" />
        <DataGridTextColumn Header="CAT" IsReadOnly="True" Binding="{Binding Path=tx_rx_calaction}" />
        <DataGridTextColumn Header="ACS" IsReadOnly="True" Binding="{Binding Path=antenna_config_state}" />
        <DataGridTextColumn Header="AN" IsReadOnly="True" Binding="{Binding Path=antenna_number}" />
        <DataGridTextColumn Header="CAP" IsReadOnly="True" Binding="{Binding Path=signal_pathcapability}" />
      </DataGrid.Columns>
    </DataGrid>
  </StackPanel>
</UserControl>