<Window x:Class="ProcessManagerV"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="200"
        Width="300">
   <StackPanel>
      <Grid HorizontalAlignment="Center">
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="30"/>
         </Grid.ColumnDefinitions>
         <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
         </Grid.RowDefinitions>
         <TextBlock Text="Arguments Queue Count: "/>
         <TextBlock Grid.Column="1"
                    Text="{Binding ArgumentsQueue}"/>
         <TextBlock Grid.Row="1"
                    Text="ResultQueue: "/>
         <TextBlock Grid.Column="1"
                    Grid.Row="1"
                    Text="{Binding ResultQueueCount}"/>
      </Grid>
      <!--<DataGrid ItemsSource="{Binding ThreadList}"
                AutoGenerateColumns="False">
         <DataGrid.Columns>
            <DataGridTextColumn Header="Process Status"
                                Binding="{Binding ProcessStatus}"/>
            <DataGridTextColumn Header="Curr Request Id"
                                Binding="{Binding CurrRequest.nId}"/>
            <DataGridTextColumn Header="Curr Request Args"
                                Binding="{Binding CurrRequest.sArgs}"/>
            <DataGridTextColumn Header="Process Result"
                                Binding="{Binding nProcResult}"/>
         </DataGrid.Columns>
      </DataGrid>-->
      <ItemsControl ItemsSource="{Binding ThreadList}">
         <ItemsControl.ItemTemplate>
            <DataTemplate>
               <StackPanel Orientation="Horizontal">
                  <TextBlock Text="{Binding ProcessStatus}"/>
                  <TextBlock Text="{Binding CurrRequest.nId}"/>
                  <TextBlock Text="{Binding CurrRequest.sArgs}"/>
                  <TextBlock Text="{Binding nProcResult}"/>
               </StackPanel>
            </DataTemplate>
         </ItemsControl.ItemTemplate>
      </ItemsControl>
      
   </StackPanel>
</Window>
