<UserControl x:Class="StructureHelper.Infrastructure.UI.DataTemplates.PolygonTemplate"
             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:local="clr-namespace:StructureHelper"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
             xmlns:infrastructure="clr-namespace:StructureHelper.Infrastructure"
             xmlns:mouseEventTriggers="clr-namespace:StructureHelper.Infrastructure.UI.Triggers.MouseEventTriggers"
             xmlns:dataContexts="clr-namespace:StructureHelper.Infrastructure.UI.DataContexts"
             mc:Ignorable="d"
             d:DataContext="{d:DesignInstance dataContexts:ShapeViewPrimitive}">
    <StackPanel>
        <Path Style="{StaticResource PolygonStyle}" d:DataContext="{d:DesignInstance dataContexts:ShapeViewPrimitive}">
            <Path.RenderTransform>
                <TransformGroup>
                    <TranslateTransform X="{Binding CenterX}" Y="{Binding InvertedCenterY}"/>
                    <RotateTransform/>
                </TransformGroup>
            </Path.RenderTransform>
        </Path>
    </StackPanel>
</UserControl>
