<NME> ContentWindowReferenceData.xaml
<BEF> ﻿<ad:DocumentContent
    x:Class="WPFToolboxForSiemensPLCs.DockableWindows.ContentWindowReferenceData"
             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:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
             mc:Ignorable="d" d:DesignHeight="339" d:DesignWidth="482">
    <DataGrid AutoGenerateColumns="False" Name="myDataGrid" CanUserResizeRows="False" CanUserSortColumns="True" CanUserAddRows="False"
              AlternatingRowBackground="Gainsboro"  AlternationCount="2">
        <DataGrid.Columns>
            <DataGridTemplateColumn Header="Operand" Width="SizeToCells" IsReadOnly="True" SortMemberPath="Operand">
                <DataGridTemplateColumn.CellTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Operand}" />
                    </DataTemplate>
                </DataGridTemplateColumn.CellTemplate>
            </DataGridTemplateColumn>
            <DataGridTemplateColumn Header="Symbol" Width="SizeToCells" IsReadOnly="True" SortMemberPath="SymbolTableEntry.Symbol">
                <DataGridTemplateColumn.CellTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding SymbolTableEntry.Symbol}" />
                    </DataTemplate>
                </DataGridTemplateColumn.CellTemplate>
            </DataGridTemplateColumn>
            <DataGridTemplateColumn Header="Referenzen" Width="SizeToCells" IsReadOnly="True" SortMemberPath="ReferencePoints">
                <DataGridTemplateColumn.CellTemplate>
                    <DataTemplate>
                        <Expander>
                            <DataGrid ItemsSource="{Binding ReferencePoints}" AutoGenerateColumns="False" CanUserAddRows="False"
              AlternatingRowBackground="Gainsboro"  AlternationCount="2" MouseDoubleClick="DataGrid_MouseDoubleClick">
                                <DataGrid.Columns>
                                    <DataGridTemplateColumn Header="Block" Width="SizeToCells" IsReadOnly="True" SortMemberPath="Block">
                                        <DataGridTemplateColumn.CellTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding Block.BlockName}" />
                                            </DataTemplate>
                                        </DataGridTemplateColumn.CellTemplate>
                                    </DataGridTemplateColumn>
                                    <DataGridTemplateColumn Header="NetworkNumber" Width="SizeToCells" IsReadOnly="True" SortMemberPath="NetworkNumber">
                                        <DataGridTemplateColumn.CellTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding NetworkNumber}" />
                                            </DataTemplate>
                                        </DataGridTemplateColumn.CellTemplate>
                                    </DataGridTemplateColumn>
                                    <DataGridTemplateColumn Header="LineNumber" Width="SizeToCells" IsReadOnly="True" SortMemberPath="LineNumber">
                                        <DataGridTemplateColumn.CellTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding LineNumber}" />
                                            </DataTemplate>
                                        </DataGridTemplateColumn.CellTemplate>
                                    </DataGridTemplateColumn>
                                    <DataGridTemplateColumn Header="Command" Width="SizeToCells" IsReadOnly="True" SortMemberPath="BlockRow.Command">
                                        <DataGridTemplateColumn.CellTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding BlockRow.Command}" />
                                            </DataTemplate>
                                        </DataGridTemplateColumn.CellTemplate>
                                    </DataGridTemplateColumn>
                                    <DataGridTemplateColumn Header="AccessMode" Width="SizeToCells" IsReadOnly="True" SortMemberPath="AccessMode">
                                        <DataGridTemplateColumn.CellTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding AccessMode}" />
                                            </DataTemplate>
                                        </DataGridTemplateColumn.CellTemplate>
                                    </DataGridTemplateColumn>
                                </DataGrid.Columns>
                            </DataGrid>
                        </Expander>
                    </DataTemplate>
                </DataGridTemplateColumn.CellTemplate>
            </DataGridTemplateColumn>
            <DataGridTemplateColumn Header="Symbol Comment" Width="SizeToCells" IsReadOnly="True" SortMemberPath="SymbolTableEntry.Comment">
                <DataGridTemplateColumn.CellTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding SymbolTableEntry.Comment}" />
                    </DataTemplate>
                </DataGridTemplateColumn.CellTemplate>
            </DataGridTemplateColumn>
        </DataGrid.Columns>
    </DataGrid>

</ad:DocumentContent>

<MSG> - Bugfixes in S5 Parts and to ReferenceData Display in WPF Toolbox


<DFF> @@ -26,17 +26,31 @@
             <DataGridTemplateColumn Header="Referenzen" Width="SizeToCells" IsReadOnly="True" SortMemberPath="ReferencePoints">
                 <DataGridTemplateColumn.CellTemplate>
                     <DataTemplate>
-                        <Expander>
-                            <DataGrid ItemsSource="{Binding ReferencePoints}" AutoGenerateColumns="False" CanUserAddRows="False"
+                        <Expander Padding="0">
+                            <DataGrid Margin="0" ItemsSource="{Binding ReferencePoints}" AutoGenerateColumns="False" CanUserAddRows="False"
               AlternatingRowBackground="Gainsboro"  AlternationCount="2" MouseDoubleClick="DataGrid_MouseDoubleClick">
                                 <DataGrid.Columns>
-                                    <DataGridTemplateColumn Header="Block" Width="SizeToCells" IsReadOnly="True" SortMemberPath="Block">
+                                    <DataGridTemplateColumn Header="Block" Width="SizeToCells" IsReadOnly="True" SortMemberPath="Block.BlockName">
                                         <DataGridTemplateColumn.CellTemplate>
                                             <DataTemplate>
                                                 <TextBlock Text="{Binding Block.BlockName}" />
                                             </DataTemplate>
                                         </DataGridTemplateColumn.CellTemplate>
                                     </DataGridTemplateColumn>
+                                    <DataGridTemplateColumn Header="Symbol" Width="SizeToCells" IsReadOnly="True" SortMemberPath="Block.SymbolTabelEntry.Symbol">
+                                        <DataGridTemplateColumn.CellTemplate>
+                                            <DataTemplate>
+                                                <TextBlock Text="{Binding Block.SymbolTabelEntry.Symbol}" />
+                                            </DataTemplate>
+                                        </DataGridTemplateColumn.CellTemplate>
+                                    </DataGridTemplateColumn>
+                                    <DataGridTemplateColumn Header="Name" Width="SizeToCells" IsReadOnly="True" SortMemberPath="Block.Name">
+                                        <DataGridTemplateColumn.CellTemplate>
+                                            <DataTemplate>
+                                                <TextBlock Text="{Binding Block.Name}" />
+                                            </DataTemplate>
+                                        </DataGridTemplateColumn.CellTemplate>
+                                    </DataGridTemplateColumn>
                                     <DataGridTemplateColumn Header="NetworkNumber" Width="SizeToCells" IsReadOnly="True" SortMemberPath="NetworkNumber">
                                         <DataGridTemplateColumn.CellTemplate>
                                             <DataTemplate>

- Bugfixes in S5 Parts and to ReferenceData Display in WPF Toolbox