<DataGrid x:Class="QParamListV"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.ViewerOptimizer"
          AutoGenerateColumns="False"
          CanUserSortColumns="False"
          CanUserResizeColumns="False"
          CanUserResizeRows="False"
          CanUserReorderColumns="False"
          SelectionMode="Single"
          ScrollViewer.CanContentScroll="True" 
          ScrollViewer.VerticalScrollBarVisibility="Auto"
          ScrollViewer.HorizontalScrollBarVisibility="Hidden"
          Margin="0,0,0,5">

   <DataGrid.Columns>

      <!--BWType-->
      <DataGridTextColumn Binding="{Binding sBWType}"
                           Width="40"
                           IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
               <TextBlock Text="{Binding DataContext.Type_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Nome-->
      <DataGridTextColumn Binding="{Binding sName}"
                           Width="50"
                           IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
               <TextBlock Text="{Binding DataContext.NAM_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Descrizione-->
      <DataGridTextColumn Binding="{Binding sDescription}"
                           Width="1*"
                           IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
            <TextBlock Text="{Binding DataContext.Description_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Default-->
      <DataGridTextColumn Binding="{Binding sDefault}"
                           Width="65">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
            <TextBlock Text="{Binding DataContext.Default_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Minimo-->
      <DataGridTextColumn Binding="{Binding sMin}"
                           Width="65"
                           IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
            <TextBlock Text="{Binding DataContext.Min_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Massimo-->
      <DataGridTextColumn Binding="{Binding sMax}"
                           Width="65"
                           IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
            <TextBlock Text="{Binding DataContext.Max_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Default-->
      <!--
      <DataGridTextColumn Binding="{Binding dDefault}"
                           IsReadOnly="True">
         <DataGridTextColumn.Header>
            <TextBlock Text="Name"/>
         </DataGridTextColumn.Header>
      </DataGridTextColumn>-->
   </DataGrid.Columns>

</DataGrid>


<!--<EgtBEAMWALL:EgtDataGrid x:Class="QParamListV"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.ViewerOptimizer"
          AutoGenerateColumns="False"
          CanUserResizeRows="False"
          SelectionMode="Single"
          ScrollViewer.CanContentScroll="True" 
          ScrollViewer.VerticalScrollBarVisibility="Auto"
          ScrollViewer.HorizontalScrollBarVisibility="Auto"
          Margin="0,0,0,5">

    <DataGrid.Resources>
        --><!--Nome--><!--
        <DataGridTextColumn x:Key="colNAME" Binding="{Binding sName}">
            <DataGridTextColumn.HeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding DataContext.NAM_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
                </DataTemplate>
            </DataGridTextColumn.HeaderTemplate>
        </DataGridTextColumn>
        --><!--Descrizione--><!--
        <DataGridTextColumn x:Key="colDESC" Binding="{Binding sDescription}">
            <DataGridTextColumn.HeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding DataContext.Description_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
                </DataTemplate>
            </DataGridTextColumn.HeaderTemplate>
        </DataGridTextColumn>
        --><!--Default--><!--
        <DataGridTextColumn x:Key="colDEFAULT" Binding="{Binding sDefault}">
            <DataGridTextColumn.HeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding DataContext.Default_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
                </DataTemplate>
            </DataGridTextColumn.HeaderTemplate>
        </DataGridTextColumn>
        --><!--Minimo--><!--
        <DataGridTextColumn x:Key="colMIN" Binding="{Binding sMin}">
            <DataGridTextColumn.HeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding DataContext.Min_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
                </DataTemplate>
            </DataGridTextColumn.HeaderTemplate>
        </DataGridTextColumn>
        --><!--Massimo--><!--
        <DataGridTextColumn x:Key="colMAX" Binding="{Binding sMax}">
            <DataGridTextColumn.HeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding DataContext.Max_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
                </DataTemplate>
            </DataGridTextColumn.HeaderTemplate>
        </DataGridTextColumn>
    
    Default commentato
    
    </DataGrid.Resources>

</EgtBEAMWALL:EgtDataGrid>-->
