<ResourceDictionary xmlns="https://github.com/avaloniaui"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:properties="clr-namespace:PixiEditor.AvaloniaUI.Views.Nodes.Properties">
    <ControlTheme TargetType="properties:NodeSocket" x:Key="{x:Type properties:NodeSocket}">
        <Setter Property="Template">
            <ControlTemplate>
                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                    <Grid Name="PART_ConnectPort">
                        <Panel Width="20" Height="20" Margin="-5, 0" Background="Transparent"
                               IsVisible="{Binding !IsFunc, RelativeSource={RelativeSource TemplatedParent}}">
                            <Ellipse Width="10" Height="10"
                                     Fill="{TemplateBinding SocketBrush}" />
                        </Panel>
                        <Panel Margin="-5, 0" Width="20" Height="20" Background="Transparent"
                               IsVisible="{Binding IsFunc, RelativeSource={RelativeSource TemplatedParent}}">
                            <Rectangle Width="10" Height="10"
                                       RadiusX="2" RadiusY="2"
                                       Fill="{TemplateBinding SocketBrush}"
                                       RenderTransform="rotate(45deg) scale(0.89)" />
                        </Panel>

                    </Grid>
                </StackPanel>
            </ControlTemplate>
        </Setter>
    </ControlTheme>
</ResourceDictionary>