<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <DataTemplate x:Key="LineVisualProperties">
        <GroupBox Header="Line properties">
            <StackPanel>
                <TextBlock Text="Line smoothness" Margin="0,5,0,5"/>
                <StackPanel Orientation="Horizontal">
                    <Slider x:Name="slider" Width="195" Minimum="0" Maximum="{Binding MaxLineSmoothness}" Value="{Binding LineSmoothness}"/>
                    <TextBox Width="40" Text="{Binding LineSmoothness,Converter={StaticResource PlainDouble}, ValidatesOnDataErrors=True}"/>
                </StackPanel>
                <TextBlock Text="Stroke thickness" Margin="0,5,0,5"/>
                <StackPanel Orientation="Horizontal">
                    <Slider x:Name="StrokeSlider" Width="195" Minimum="0" Maximum="{Binding MaxStrokeSize}" Value="{Binding StrokeSize}"/>
                    <TextBox Width="40" Text="{Binding StrokeSize,Converter={StaticResource PlainDouble}, ValidatesOnDataErrors=True}"/>
                </StackPanel>
                <TextBlock Text="Filling opacity" Margin="0,5,0,5"/>
                <StackPanel Orientation="Horizontal">
                    <Slider x:Name="OpacitySlider" Width="195" Minimum="0" Maximum="1" Value="{Binding Opacity}" TickFrequency="0.05" />
                    <TextBox Width="40" Text="{Binding Opacity,Converter={StaticResource PlainDouble}, ValidatesOnDataErrors=True}"/>
                </StackPanel>
            </StackPanel>
        </GroupBox>
    </DataTemplate>
</ResourceDictionary>