<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:primitives="clr-namespace:StructureHelper.Infrastructure.UI.GraphicalPrimitives">
    
    <!-- Polygon template -->
    <DataTemplate x:Key="PolygonShapeGraphTemplate"
          DataType="primitives:PolygonShapePrimitive">
        <Canvas>
            <Path
            Data ="{Binding PathGeometry}"
            Stroke="Black"
            StrokeThickness="0.005"
            >
                <Path.Fill>
                    <SolidColorBrush Color="{Binding VisualProperty.Color}" Opacity="{Binding VisualProperty.Opacity}"/>
                </Path.Fill>
            </Path>
        </Canvas>
    </DataTemplate>
</ResourceDictionary>