<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:visualizers="clr-namespace:Artemis.UI.Screens.ProfileEditor.VisualEditor.Visualizers"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="Artemis.UI.Screens.ProfileEditor.VisualEditor.Visualizers.LayerVisualizerView"
             x:DataType="visualizers:LayerVisualizerViewModel"
             ClipToBounds="False">
    <UserControl.Styles>
        <Style Selector="Path.layer-visualizer">
            <Setter Property="Stroke" Value="{StaticResource SystemAccentColorDark2}" />
            <Setter Property="Opacity" Value="0" />
            <Setter Property="Transitions">
                <Setter.Value>
                    <Transitions>
                        <DoubleTransition Property="Opacity" Duration="0:0:0.2" Easing="CubicEaseOut" />
                    </Transitions>
                </Setter.Value>
            </Setter>
        </Style>
        <Style Selector="Path.layer-visualizer-selected">
            <Setter Property="Stroke" Value="{StaticResource SystemAccentColorDark2}" />
            <Setter Property="Opacity" Value="1" />
        </Style>
    </UserControl.Styles>
    <Path Name="LayerVisualizer"
          Classes="layer-visualizer"
          Classes.layer-visualizer-selected="{CompiledBinding Selected}"
          StrokeThickness="4"
          StrokeDashArray="6,2"
          StrokeJoin="Round">
        <Path.Data>
            <RectangleGeometry Rect="{CompiledBinding LayerBounds}" />
        </Path.Data>
    </Path>
</UserControl>