<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:uc="clr-namespace:StructureHelper.Windows.UserControls">

    <Style TargetType="Button" x:Key="ButtonBase">

    </Style>
    <Style TargetType="Button" x:Key="CommandButton" BasedOn="{StaticResource ButtonBase}">
        <Style.Setters>
            <Setter Property="Height" Value="25"/>
        </Style.Setters>
    </Style>
    <Style TargetType="Button" x:Key="AddButton" BasedOn="{StaticResource CommandButton}">
        <Style.Setters>
            <Setter Property="Content" Value="Add"/>
            <Setter Property="Command" Value="{Binding Add}"/>
        </Style.Setters>
    </Style>
    <Style TargetType="Button" x:Key="EditButton" BasedOn="{StaticResource CommandButton}">
        <Style.Setters>
            <Setter Property="Content" Value="Edit"/>
            <Setter Property="Command" Value="{Binding Edit}"/>
        </Style.Setters>
    </Style>
    <Style TargetType="Button" x:Key="DeleteButton" BasedOn="{StaticResource CommandButton}">
        <Style.Setters>
            <Setter Property="Content" Value="Delete"/>
            <Setter Property="Command" Value="{Binding Delete}"/>
        </Style.Setters>
    </Style>
    <Style TargetType="Button" x:Key="CopyButton" BasedOn="{StaticResource CommandButton}">
        <Style.Setters>
            <Setter Property="Content" Value="Copy"/>
            <Setter Property="Command" Value="{Binding Copy}"/>
        </Style.Setters>
    </Style>
    <Style TargetType="Button" x:Key="OkButton" BasedOn="{StaticResource CommandButton}">
        <Style.Setters>
            <Setter Property="Content" Value="Ok"/>
            <Setter Property="IsDefault" Value="True"/>
            <Setter Property="Width" Value="60"/>
            <Setter Property="Margin" Value="5"/>
        </Style.Setters>
    </Style>
    <Style TargetType="Button" x:Key="CancelButton" BasedOn="{StaticResource CommandButton}">
        <Style.Setters>
            <Setter Property="Content" Value="Cancel"/>
            <Setter Property="IsCancel" Value="True"/>
            <Setter Property="Width" Value="60"/>
            <Setter Property="Margin" Value="5"/>
        </Style.Setters>
    </Style>

    <Style x:Key="ToolButton" TargetType="Button">
        <Style.Resources>
            <Style TargetType="Image">
                <Setter Property="Width" Value="32"/>
                <Setter Property="Height" Value="32"/>
                <Setter Property="Margin" Value="-2"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Style.Triggers>
                    <Trigger Property="IsEnabled" Value="False">
                        <Setter Property="Opacity" Value="0.25"/>
                    </Trigger>
                </Style.Triggers>
            </Style>
            <Style TargetType="Viewbox">
                <Setter Property="Margin" Value="-2"/>
                <Setter Property="Width" Value="32"/>
                <Setter Property="Height" Value="32"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="Stretch" Value="UniformToFill"/>
                <Style.Triggers>
                    <Trigger Property="IsEnabled" Value="False">
                        <Setter Property="Opacity" Value="0.25"/>
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Style.Resources>
        <Setter Property="Width" Value="32"/>
        <Setter Property="Height" Value="32"/>
        <Setter Property="Margin" Value="2,0,2,0"/>
        <Setter Property="Background" Value="#FFA19BC3"/>
        <Setter Property="BorderBrush" Value="Black"/>
    </Style>
    <Style x:Key="ToolButton24" TargetType="Button" BasedOn="{StaticResource ToolButton}">
        <Setter Property="Height" Value="24"/>
        <Setter Property="Width" Value="24"/>
    </Style>
    <Style x:Key="ButtonImage16" TargetType="Image">
        <Setter Property="Height" Value="16"/>
        <Setter Property="Width" Value="16"/>
    </Style>
    <Style x:Key="ButtonImage32" TargetType="Image">
        <Setter Property="Height" Value="32"/>
        <Setter Property="Width" Value="32"/>
    </Style>

    <Color x:Key="ButtonLight" A="255" B="255" G="255" R="255"/>

    <Color x:Key="PrimitiveColor" A="255" B="190" G="120" R="120"/>
    <Color x:Key="ResultColor" A="255" B="200" G="200" R="200"/>
    <Color x:Key="ResultFrameColor" A="255" B="100" G="100" R="100"/>

    <SolidColorBrush x:Key="PrimitiveCanvas" Color="{DynamicResource PrimitiveColor}"/>
    <SolidColorBrush x:Key="ResultCanvas" Color="{DynamicResource ResultColor}"/>
    <SolidColorBrush x:Key="ResultFrame" Color="{DynamicResource ResultFrameColor}"/>

    <Style x:Key="ButtonCanvas" TargetType="Canvas">
        <Setter Property="Width" Value="32"/>
        <Setter Property="Height" Value="32"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
    </Style>

    <Style x:Key="ButtonPrimitiveCanvas" TargetType="Canvas" BasedOn="{StaticResource ButtonCanvas}">
        <Setter Property="Background" Value="{DynamicResource PrimitiveCanvas}"/>
    </Style>
    <Style x:Key="ButtonResultCanvas" TargetType="Canvas" BasedOn="{StaticResource ButtonCanvas}">
        <Setter Property="Background" Value="{DynamicResource ResultCanvas}"/>

    </Style>
    <Style x:Key="ButtonRect" TargetType="Rectangle">
        <Setter Property="Margin" Value="3"/>
        <Setter Property="Width" Value="26"/>
        <Setter Property="Height" Value="26"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="StrokeThickness" Value="1"/>
    </Style>

    <DataTemplate x:Key="AddEntity">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="16" Y1="4" X2="16" Y2="26" Stroke="Black" StrokeThickness="2"/>
                <Line X1="4" Y1="16" X2="26" Y2="16" Stroke="Black" StrokeThickness="2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="CopyAnalysis">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Ellipse Width="16" Height="16"  Fill="LightGray" Stroke="Black" StrokeThickness="1" Margin="12,12,0,0"/>
                <Ellipse Width="18" Height="18"  Fill="White" Stroke="Black" StrokeThickness="1" Margin="3,3,0,0"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="DeleteEntity">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="4" Y1="4" X2="26" Y2="26" Stroke="Black" StrokeThickness="2"/>
                <Line X1="4" Y1="26" X2="26" Y2="4" Stroke="Black" StrokeThickness="2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>

    <DataTemplate x:Key="Back">
        <Path Margin="4" Data="M -1 18 l 2 -9 l 1 3 a 15 15 90 0 1 22 -3 l -2 4 a 13 13 90 0 0 -18 2 l 3 3 z" Fill="White" Stroke="Black"/>
    </DataTemplate>

    <DataTemplate x:Key="BeamShear">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="2" Y1="11" X2="30" Y2="11" Stroke="Black" StrokeThickness="0.5"/>
                <Path Data="M2,11 v-6 l28,12 v-6" Stroke="Black" StrokeThickness="1"/>
                <Path Data="M2,26 v-8 h10 v2 l-8,6 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
                <Path Data="M14,22 v-2 h16 v8 h-24 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>

    <DataTemplate x:Key="BeamShearInclinedSection">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Path Data="M2,26 v-8 h10 v2 l-8,6 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
                <Path Data="M14,22 v-2 h16 v8 h-24 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>

    
    <DataTemplate x:Key="ButtonMaterialRectangle">
        <Rectangle Style="{DynamicResource ButtonRect}" Stroke="{DynamicResource MaterialFrame}">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="{DynamicResource ButtonLight}" Offset="0.2"/>
                    <GradientStop Color="{DynamicResource MaterialColor}" Offset="1"/>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
    </DataTemplate>
    
    <DataTemplate x:Key="ButtonResultRectangle">
        <Rectangle Style="{DynamicResource ButtonRect}" Stroke="{DynamicResource ResultFrame}">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="{DynamicResource ButtonLight}" Offset="0.2"/>
                    <GradientStop Color="{DynamicResource ResultColor}" Offset="1"/>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
    </DataTemplate>

    <DataTemplate x:Key="ConcentratedForce">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="16" Y1="4" X2="16" Y2="20" Stroke="Black" StrokeThickness="1"/>
                <Line X1="10" Y1="12" X2="16" Y2="20" Stroke="Black" StrokeThickness="1"/>
                <Line X1="22" Y1="12" X2="16" Y2="20" Stroke="Black" StrokeThickness="1"/>
                <Line X1="2" Y1="20" X2="30" Y2="20" Stroke="Black" StrokeThickness="2"/>
                <Ellipse Canvas.Left="13" Canvas.Top="17" Height="6" Width="6" Stroke="Black" StrokeThickness="1" Fill="White"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>

    <DataTemplate x:Key="CopyToClipboard">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <ContentControl Canvas.Top="10" Canvas.Left="14" ContentTemplate="{DynamicResource Document}"/>
                <ContentControl Canvas.Top="6" Canvas.Left="8" ContentTemplate="{DynamicResource Document}"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="CoordGrid">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Line X1="4" Y1="22" X2="28" Y2="22" Stroke="DarkGray"/>
                <Line X1="10" Y1="4" X2="10" Y2="28" Stroke="DarkGray"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="CrackForces">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Path Margin="4" Data="M 0 10 h 5 l -1 3 l 1 3 l 0 -3 l 1 -3 h 5 l -1 3 l 1 4 l 0 -3 l 1 -4 h 6  l -1 3 l 1 3 l 0 -3 l 1 -3 h 5 v 14 h -24 z" Fill="DarkGray" Stroke="Black"/>
                <TextBlock Text="Ncrc" FontSize="8" FontWeight="Bold" Margin="4,2,0,0"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>

    <DataTemplate x:Key="DeSelectAll">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <CheckBox Canvas.Left="13" Canvas.Top="13" IsChecked="False" IsEnabled="False"/>
                <CheckBox Canvas.Left="2" Canvas.Top="2" IsChecked="False" IsEnabled="False"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Diagrams">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="2" Y1="16" X2="30" Y2="16" Stroke="Black" StrokeThickness="0.5"/>
                <Line X1="16" Y1="2" X2="16" Y2="30" Stroke="Black" StrokeThickness="0.5"/>
                <Path Margin="2" Data="M 0 21 l 6 0 l 9 -8 l 9 -8 l 4 0" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>

    <DataTemplate x:Key="DistributedLoad">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="4" Y1="10" X2="28" Y2="10" Stroke="Black" StrokeThickness="1"/>
                <Line X1="4" Y1="10" X2="4" Y2="20" Stroke="Black" StrokeThickness="1"/>
                <Line X1="28" Y1="10" X2="28" Y2="20" Stroke="Black" StrokeThickness="1"/>
                <Line X1="2" Y1="16" X2="4" Y2="20" Stroke="Black" StrokeThickness="1"/>
                <Line X1="6" Y1="16" X2="4" Y2="20" Stroke="Black" StrokeThickness="1"/>
                <Line X1="26" Y1="16" X2="28" Y2="20" Stroke="Black" StrokeThickness="1"/>
                <Line X1="30" Y1="16" X2="28" Y2="20" Stroke="Black" StrokeThickness="1"/>
                <Line X1="2" Y1="20" X2="30" Y2="20" Stroke="Black" StrokeThickness="2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Document">
        <Canvas>
            <Canvas.Children>
                <Rectangle Height="16" Width="12" Fill="White" Stroke="DarkGray"/>
                <Line X1="2" Y1="4" X2="10" Y2="4" Stroke="Black"/>
                <Line X1="2" Y1="7" X2="10" Y2="7" Stroke="Black"/>
                <Line X1="2" Y1="10" X2="10" Y2="10" Stroke="Black"/>
                <Line X1="2" Y1="13" X2="10" Y2="13" Stroke="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="EditAnalysis">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Path Margin="4" Data="M 2 22 l 4 -6 l 15 -16 l 4 4 l -15 14 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="AnalysisVersions">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Ellipse Width="10" Height="10"  Fill="LightGray" Stroke="Black" StrokeThickness="1" Margin="18,18,0,0"/>
                <Ellipse Width="12" Height="12"  Fill="LightGray" Stroke="Black" StrokeThickness="1" Margin="12,12,0,0"/>
                <Ellipse Width="14" Height="14"  Fill="White" Stroke="Black" StrokeThickness="1" Margin="5,5,0,0"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ExportToDxf">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Rectangle Canvas.Left="2" Canvas.Top="2" Width="28" Height="12" Fill="White" Stroke="Black"/>
                <TextBlock Text="DXF" FontSize="8" FontWeight="Bold" Margin="4,2,0,2"/>
                <TextBlock Text="to" FontSize="12" FontWeight="Bold" FontStyle="Italic" Margin="2,14,0,2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ExportToNewAnalysis">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Path Margin="4" Data="M 12 22 l 0 -18 l 12 0 l 0 14 l -4 4 z" Fill="White" Stroke="Black"/>
                <Path Margin="4" Data="M 20 22 l 0 -4 l 4 0 " Fill="White" Stroke="Black"/>
                <TextBlock Margin="16, 4, 0, 0" Text="+-" FontSize="10"/>
                <Path Margin="4" Data="M -1 18 l 0 -4 l 10 0 l 0 -3 l 5 5 l -5 5 l 0 -3 z" Fill="White" Stroke="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ExportToXLS">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource Table}"/>
                <TextBlock Text="CSV" FontSize="8" FontWeight="Bold" Margin="4,2,0,2"/>
                <TextBlock Text="XLS" FontSize="12" FontWeight="Bold" FontStyle="Italic" Margin="6,14,0,2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ExportToExcelButton">
        <Button Style="{DynamicResource ToolButton}" Command="{Binding ExportToCSVCommand}">
            <Button.ToolTip>
                <uc:ButtonToolTipEh HeaderText="Export to *.csv"
                                                IconContent="{StaticResource ExportToXLS}"
                                                DescriptionText="Export all valid results to *.csv file"/>
            </Button.ToolTip>
            <Viewbox>
                <ContentControl ContentTemplate="{DynamicResource ExportToXLS}"/>
            </Viewbox>
        </Button>
    </DataTemplate>
    <DataTemplate x:Key="FileOpen">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Path Margin="4" Data="M 2 6 l 8 0 l 3 3 l 6 0 l 0 12 l -17 0 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
                <Path Margin="4" Data="M 6 12 l 20 0 l -5 10 l -19 0 z" Fill="LightGray" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="FileSave">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Rectangle Height="26" Width="26" Canvas.Left="3" Canvas.Top="3"
                            Fill="DarkGray" Stroke="Black" StrokeThickness="1"
                            RadiusX="2" RadiusY="2"/>
                <Rectangle Height="8" Width="12" Canvas.Left="10" Canvas.Top="4"
                            Fill="LightGray" Stroke="Black" StrokeThickness="0.5"/>
                <Rectangle Height="6" Width="4" Canvas.Left="16" Canvas.Top="5"
                            Fill="DarkGray" Stroke="Black" StrokeThickness="0.5"/>
                <Rectangle Height="14" Width="22" Canvas.Left="5" Canvas.Top="13"
                            Fill="LightGray" Stroke="Black" StrokeThickness="0.5"
                            RadiusX="2" RadiusY="2"/>
                <Line X1="7" Y1="18" X2="24" Y2="18" Stroke="Black" StrokeThickness="0.5"/>
                <Line X1="7" Y1="21" X2="24" Y2="21" Stroke="Black" StrokeThickness="0.5"/>
                <Line X1="7" Y1="24" X2="24" Y2="24" Stroke="Black" StrokeThickness="0.5"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="FlipVertical">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="16" Y1="2" X2="16" Y2="30" Stroke="Black" StrokeThickness="0.5"/>
                <Path Margin="4" Data="M 15 4 l 9 20 l -9 0  z" Fill="White" Stroke="Black" StrokeThickness="1"/>
                <Path Margin="4" Data="M 9 4 l -9 20 l 9 0  z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="FlipHorizontal">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="2" Y1="16" X2="30" Y2="16" Stroke="Black" StrokeThickness="0.5"/>
                <Path Margin="4" Data="M 4 15 l 20 9 l 0 -9  z" Fill="White" Stroke="Black" StrokeThickness="1"/>
                <Path Margin="4" Data="M 4 9 l 20 -9 l 0 9  z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ForceTable">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <ContentControl ContentTemplate="{DynamicResource Table}"/>
                <TextBlock Text="Force" FontSize="8" FontWeight="Bold" Margin="4,2,0,2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Forward">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource Back}">
                    <ContentControl.RenderTransform>
                        <TransformGroup>
                            <TranslateTransform Y="-5"/>
                            <ScaleTransform ScaleX="-1" CenterX="15" CenterY="8"/>
                        </TransformGroup>
                    </ContentControl.RenderTransform>
                </ContentControl>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="GeometryTable">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <ContentControl ContentTemplate="{DynamicResource Table}"/>
                <TextBlock Text="Geom" FontSize="8" FontWeight="Bold" Margin="4,2,0,2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="GetArea">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <TextBlock Text="A" FontSize="22" FontWeight="Bold" Margin="2,-4,0,2"/>
                <TextBlock Text="?" FontSize="18" FontWeight="Bold" Margin="20,8,0,2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Image">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Path Data="M 4 16 l 8 -3 l 3 3 l 6 -3 l 7 3 v 12 h -24 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
                <Ellipse Canvas.Top="16" Canvas.Left="18" Height="6" Width="6" Fill="White"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ImportFromDxf">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Rectangle Canvas.Left="2" Canvas.Top="2" Width="28" Height="12" Fill="White" Stroke="Black"/>
                <TextBlock Text="DXF" FontSize="8" FontWeight="Bold" Margin="4,2,0,2"/>
                <TextBlock Text="from" FontSize="12" FontWeight="Bold" FontStyle="Italic" Margin="2,14,0,2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="InteractionDiagram">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource CoordGrid}"/>
                <Path Margin="4" Data="M 6 0 l 5 3 l 6 4 l 3 5 l 0 4 l -4 3 l -10 3 z" Stroke="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="InvertSelection">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <CheckBox Canvas.Left="13" Canvas.Top="13" IsChecked="True" IsEnabled="False"/>
                <CheckBox Canvas.Left="2" Canvas.Top="2" IsChecked="False" IsEnabled="False"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="IsoField3DResult">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Line X1="10" Y1="5" X2="10" Y2="18" Stroke="Black"/>
                <Line X1="10" Y1="18" X2="5" Y2="27" Stroke="Black"/>
                <Line X1="10" Y1="18" X2="27" Y2="18" Stroke="Black"/>
                <Path Margin="4" Data="M 6 2 A 20 10 60 0 1 22 14 A 20 10 10 0 1 3 22 A 20 10 -50 0 1 6 2 z" Fill="Gray" Opacity="0.6"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="IsoFieldResult">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Path Margin="4" Data="M 0 0 h 20 A 20 20 90 0 1 0 24 z" Fill="Gray"/>
                <Path Margin="4" Data="M 0 0 h 16 A 16 16 90 0 1 0 18 z" Fill="DarkGray"/>
                <Path Margin="4" Data="M 0 0 h 10 A 10 10 90 0 1 0 10 z" Fill="LightGray"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="LappingLength">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Line X1="10" Y1="17" X2="28" Y2="17" Stroke="Black"/>
                <Line X1="3" Y1="20" X2="22" Y2="20" Stroke="Black"/>
                <Line X1="10" Y1="6" X2="10" Y2="15" Stroke="Black"/>
                <Line X1="22" Y1="6" X2="22" Y2="15" Stroke="Black"/>
                <Line X1="7" Y1="10" X2="25" Y2="10" Stroke="Black"/>
                <Line X1="7" Y1="13" X2="13" Y2="7" Stroke="Black"/>
                <Line X1="19" Y1="13" X2="25" Y2="7" Stroke="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="MomentCurvature">
        <Path Margin="4" Data="M 3 18 l 4 -7 h 4 l 8 -7 h 5" Stroke="Black"/>
    </DataTemplate>
    <DataTemplate x:Key="MomentCurvatureCrackDiagram">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource CoordGrid}"/>
                <ContentControl ContentTemplate="{DynamicResource MomentCurvature}"/>
                <TextBlock Text="Crc" FontSize="8" FontWeight="Bold" Margin="4,2,0,0"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="MomentCurvatureDiagram">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource CoordGrid}"/>
                <ContentControl ContentTemplate="{DynamicResource MomentCurvature}"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="NdmCrossSection">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Rectangle Height="16" Width="8" Canvas.Left="12" Canvas.Top="12"
                            Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
                <Rectangle Height="6" Width="16" Canvas.Left="8" Canvas.Top="7"
                            Fill="LightGray" Stroke="Black" StrokeThickness="1"/>
                <Line X1="2" Y1="16" X2="30" Y2="16" Stroke="Black" StrokeThickness="0.5"/>
                <Line X1="16" Y1="2" X2="16" Y2="30" Stroke="Black" StrokeThickness="0.5"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="OkCancelButtons">
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Style="{StaticResource CancelButton}" Command="{Binding CancelCommand}"/>
            <Button Style="{StaticResource OkButton}" Command="{Binding OkCommand}"/>
        </StackPanel>
    </DataTemplate>
    <DataTemplate x:Key="PngImage">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource Image}"/>
                <TextBlock Text="PNG" FontSize="8" FontWeight="Bold" Margin="4,2,0,2"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Polygon">
        <Canvas Style="{DynamicResource ButtonPrimitiveCanvas}">
            <Canvas.Children>

                <Path Margin="4" Data="M6,6 l2,2 l6,-6 l6,6 l1,6 l-4,8 l-16,-5
                      z" Fill="DarkGray" Stroke="Black"/>
                <Line X1="16" Y1="3" X2="16" Y2="29" Stroke="Black" StrokeThickness="0.5"/>
                <Line X1="3" Y1="16" X2="29" Y2="16" Stroke="Black" StrokeThickness="0.5"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Prestrain">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Ellipse Margin="14,13,0,0" Height="4" Width="4" Fill="DarkGray" Stroke="Black"/>
                <ContentControl ContentTemplate="{DynamicResource StraightArrow}">
                    <ContentControl.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="0.6" ScaleY="0.6"/>
                            <TranslateTransform X="13" Y="6"/>
                        </TransformGroup>
                    </ContentControl.RenderTransform>
                </ContentControl>
                <ContentControl ContentTemplate="{DynamicResource StraightArrow}">
                    <ContentControl.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="-0.6" ScaleY="0.6"/>
                            <TranslateTransform X="19" Y="6"/>
                        </TransformGroup>
                    </ContentControl.RenderTransform>
                </ContentControl>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="RunAnalysis">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Path Margin="4" Data="M 4 2 l 12 10 l -12 10 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Renew">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource Back}">
                    <ContentControl.RenderTransform>
                        <TransformGroup>
                            <TranslateTransform Y="-6"/>
                            <ScaleTransform ScaleX="-1" CenterX="15" CenterY="8"/>
                        </TransformGroup>
                    </ContentControl.RenderTransform>
                </ContentControl>
                <ContentControl ContentTemplate="{DynamicResource Back}">
                    <ContentControl.RenderTransform>
                        <TransformGroup>
                            <TranslateTransform Y="-22"/>
                            <ScaleTransform ScaleY="-1" CenterX="15" CenterY="8"/>
                        </TransformGroup>
                    </ContentControl.RenderTransform>
                </ContentControl>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Report">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <ContentControl Canvas.Top="5" Canvas.Left="6" ContentTemplate="{DynamicResource Document}"/>
                <ContentControl Canvas.Top="8" Canvas.Left="10" ContentTemplate="{DynamicResource Document}"/>
                <ContentControl Canvas.Top="11" Canvas.Left="14" ContentTemplate="{DynamicResource Document}"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Restore">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource Back}"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="RestoreAndDelete">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource DeleteEntity}"/>
                <ContentControl ContentTemplate="{DynamicResource Back}"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Print">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Rectangle Margin="9,8,0,0" Height="8" Width="15" Fill="White" Stroke="Black"/>
                <Rectangle Margin="5,15,0,0" Height="10" Width="23" Fill="DarkGray" Stroke="Black"/>
                <Ellipse Margin="8,18,0,0" Height="2" Width="2" Fill="Black" Stroke="Black"/>
                <Ellipse Margin="12,18,0,0" Height="2" Width="2" Fill="Black" Stroke="Black"/>
                <Ellipse Margin="16,18,0,0" Height="2" Width="2" Fill="Black" Stroke="Black"/>
                <Rectangle Margin="9,22,0,0" Height="6" Width="15"  Fill="White" Stroke="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="SelectAll">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <CheckBox Canvas.Left="13" Canvas.Top="13" IsChecked="True" IsEnabled="False"/>
                <CheckBox Canvas.Left="2" Canvas.Top="2" IsChecked="True" IsEnabled="False"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="Settings">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Path Margin="4" Data="M8,8 v-6 l-4,-4
                      a7,7 90 0 1 7,10
                      l12,12 v3 h-3 l-12,-12
                      a7,7 90 0 1 -10,-7
                      l4,4
                      z" Fill="DarkGray" Stroke="Black"/>
                <Ellipse Height="2" Width="2" Fill="White" Canvas.Left="24" Canvas.Top="24"/>
                <Ellipse Height="5" Width="5" Fill="White" Canvas.Left="6" Canvas.Top="6"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ShearCalculator">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <TextBlock Text="+-" FontSize="20" FontWeight="Bold" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="4,-6,0,0"/>
                <Path Data="M2,26 v-8 h10 v2 l-8,6 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
                <Path Data="M14,22 v-2 h16 v8 h-24 z" Fill="DarkGray" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ShearCircleSection">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Ellipse Canvas.Left="3" Canvas.Top="3" Width="26" Height="26" Fill="LightGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="14" Canvas.Top="5" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="21" Canvas.Top="10" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="7" Canvas.Top="10" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="21" Canvas.Top="17" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="7" Canvas.Top="17" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="14" Canvas.Top="22" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ShearRectangleSection">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Rectangle Canvas.Left="5" Canvas.Top="3" Width="22" Height="26" Fill="LightGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="10" Canvas.Top="21" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="18" Canvas.Top="21" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ShearSectionCircleTemplate">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Ellipse Canvas.Left="3" Canvas.Top="3" Width="26" Height="26" Fill="LightGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="5" Canvas.Top="5" Width="22" Height="22" Fill="LightGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="14" Canvas.Top="7" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="20" Canvas.Top="10.5" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="8" Canvas.Top="10.5" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="20" Canvas.Top="16.5" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="8" Canvas.Top="16.5" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="14" Canvas.Top="20" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ShearSectionRectangleTemplate">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Rectangle Canvas.Left="5" Canvas.Top="3" Width="22" Height="26" Fill="LightGray" Stroke ="Black"/>
                <Rectangle Canvas.Left="8" Canvas.Top="6" Width="16" Height="20" Fill="LightGray" Stroke ="Black" RadiusX="2" RadiusY="2"/>
                <Ellipse Canvas.Left="10" Canvas.Top="21" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="18" Canvas.Top="21" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="ShowRebarsResult">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Rectangle Canvas.Left="8" Canvas.Top="6" Width="16" Height="21" Fill="LightGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="10" Canvas.Top="21" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
                <Ellipse Canvas.Left="18" Canvas.Top="21" Width="4" Height="4" Fill="DarkGray" Stroke ="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>

    <DataTemplate x:Key="StepSolution">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource CoordGrid}"/>
                <Line X1="5" Y1="27" X2="26" Y2="6" Stroke="Black"/>
                <Line X1="25.5" Y1="22" X2="25.5" Y2="6" Stroke="LightGray"/>
                <Line X1="10" Y1="6" X2="25.5" Y2="6" Stroke="LightGray"/>
                <Line X1="5.5" Y1="26" X2="5.5" Y2="22" Stroke="LightGray"/>
                <Line X1="5.5" Y1="26" X2="10" Y2="26" Stroke="LightGray"/>
                <Ellipse Margin="4, 25, 0, 0" Width="3" Height="3" Fill="Black"/>
                <Ellipse Margin="11, 18, 0, 0" Width="3" Height="3" Fill="Black"/>
                <Ellipse Margin="18, 11, 0, 0" Width="3" Height="3" Fill="Black"/>
                <Ellipse Margin="24, 5, 0, 0" Width="3" Height="3" Fill="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="StirrupDensity">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="2" Y1="8" X2="30" Y2="8" Stroke="Black" StrokeThickness="1"/>
                <Line X1="2" Y1="24" X2="30" Y2="24" Stroke="Black" StrokeThickness="1"/>
                <Line X1="4" Y1="6" X2="4" Y2="26" Stroke="Black" StrokeThickness="0.6"/>
                <TextBlock Margin="7,9" Text="Den" FontWeight="Bold" FontSize="10" Background="White"/>
                <Line X1="28" Y1="6" X2="28" Y2="26" Stroke="Black" StrokeThickness="0.6"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="StirrupInclinedRebar">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="2" Y1="12" X2="11" Y2="12" Stroke="Black" StrokeThickness="1"/>
                <Line X1="11" Y1="12" X2="21" Y2="22" Stroke="Black" StrokeThickness="1"/>
                <Line X1="21" Y1="22" X2="30" Y2="22" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="StirrupRebars">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="2" Y1="8" X2="30" Y2="8" Stroke="Black" StrokeThickness="1"/>
                <Line X1="2" Y1="24" X2="30" Y2="24" Stroke="Black" StrokeThickness="1"/>
                <Line X1="4" Y1="6" X2="4" Y2="26" Stroke="Black" StrokeThickness="0.6"/>
                <Line X1="10" Y1="6" X2="10" Y2="26" Stroke="Black" StrokeThickness="0.6"/>
                <Line X1="16" Y1="6" X2="16" Y2="26" Stroke="Black" StrokeThickness="0.6"/>
                <Line X1="22" Y1="6" X2="22" Y2="26" Stroke="Black" StrokeThickness="0.6"/>
                <Line X1="28" Y1="6" X2="28" Y2="26" Stroke="Black" StrokeThickness="0.6"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="StraightArrow">
        <Path Margin="4" Data="M 5 13 l 0 -4 l 10 0 l 0 -3 l 5 5 l -5 5 l 0 -3 z" Fill="White" Stroke="Black"/>
    </DataTemplate>
    <DataTemplate x:Key="Table">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Line X1="4" Y1="13" X2="28" Y2="13" Stroke="Black"/>
                <Line X1="4" Y1="16" X2="28" Y2="16" Stroke="Black"/>
                <Line X1="4" Y1="19" X2="28" Y2="19" Stroke="DarkGray" StrokeThickness="0.5"/>
                <Line X1="4" Y1="22" X2="28" Y2="22" Stroke="DarkGray" StrokeThickness="0.5"/>
                <Line X1="4" Y1="25" X2="28" Y2="25" Stroke="DarkGray" StrokeThickness="0.5"/>
                <Line X1="12" Y1="13" X2="12" Y2="28" Stroke="Black" StrokeThickness="0.5"/>
                <Line X1="17" Y1="13" X2="17" Y2="28" Stroke="Black" StrokeThickness="0.5"/>
                <Line X1="22" Y1="13" X2="22" Y2="28" Stroke="Black" StrokeThickness="0.5"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="TableHeight">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource ButtonResultRectangle}"/>
                <Line X1="4" Y1="7" X2="28" Y2="7" Stroke="Black"/>
                <Line X1="4" Y1="10" X2="28" Y2="10" Stroke="Black"/>
                <Line X1="4" Y1="13" X2="28" Y2="13" Stroke="DarkGray" StrokeThickness="0.5"/>
                <Line X1="4" Y1="16" X2="28" Y2="16" Stroke="DarkGray" StrokeThickness="0.5"/>
                <Line X1="4" Y1="19" X2="28" Y2="19" Stroke="DarkGray" StrokeThickness="0.5"/>
                <Line X1="4" Y1="22" X2="28" Y2="22" Stroke="DarkGray" StrokeThickness="0.5"/>
                <Line X1="4" Y1="25" X2="28" Y2="25" Stroke="DarkGray" StrokeThickness="0.5"/>
                <Line X1="12" Y1="7" X2="12" Y2="28" Stroke="Black" StrokeThickness="0.5"/>
                <Line X1="17" Y1="7" X2="17" Y2="28" Stroke="Black" StrokeThickness="0.5"/>
                <Line X1="22" Y1="7" X2="22" Y2="28" Stroke="Black" StrokeThickness="0.5"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="TableRowAdd">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource TableHeight}"/>
                <Rectangle Canvas.Top="25" Canvas.Left="4" Height="3" Width="24" Fill="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="TableRowAddAfter">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource TableHeight}"/>
                <Rectangle Canvas.Top="16" Canvas.Left="4" Height="3" Width="24" Fill="DarkGray"/>
                <Rectangle Canvas.Top="19" Canvas.Left="4" Height="3" Width="24" Fill="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="TableRowAddBefore">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource TableHeight}"/>
                <Rectangle Canvas.Top="16" Canvas.Left="4" Height="3" Width="24" Fill="Black"/>
                <Rectangle Canvas.Top="19" Canvas.Left="4" Height="3" Width="24" Fill="DarkGray"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="TableRowDelete">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource TableHeight}"/>
                <Rectangle Canvas.Top="16" Canvas.Left="4" Height="3" Width="24" Fill="Black"/>
                <Line X1="4" Y1="13" X2="28" Y2="22" Stroke="Black" StrokeThickness="1"/>
                <Line X1="4" Y1="22" X2="28" Y2="13" Stroke="Black" StrokeThickness="1"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
    <DataTemplate x:Key="TreeGroup">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <Line X1="2" Y1="6" X2="12" Y2="6" Stroke="Black" StrokeThickness="1"/>
                <Line X1="12" Y1="6" X2="12" Y2="28" Stroke="Black" StrokeThickness="1"/>
                <Line X1="12" Y1="10" X2="18" Y2="10" Stroke="Black" StrokeThickness="1"/>
                <Rectangle Canvas.Top="8" Canvas.Left="18"  Height="6" Width="12" Stroke="Black" Fill="White"/>
                <Line X1="12" Y1="18" X2="18" Y2="18" Stroke="Black" StrokeThickness="1"/>
                <Rectangle Canvas.Top="16" Canvas.Left="18"  Height="6" Width="12" Stroke="Black" Fill="White"/>
                <Line X1="12" Y1="26" X2="18" Y2="26" Stroke="Black" StrokeThickness="1"/>
                <Rectangle Canvas.Top="24" Canvas.Left="18"  Height="6" Width="12" Stroke="Black" Fill="White"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>

    <DataTemplate x:Key="ValuePointDiagram">
        <Canvas Style="{DynamicResource ButtonResultCanvas}">
            <Canvas.Children>
                <ContentControl ContentTemplate="{DynamicResource CoordGrid}"/>
                <Path Margin="4" Data="M 3 0 l 4 12 l 12 6 h 5" Stroke="Black"/>
                <Rectangle Margin="15, 5, 0, 0" Width="10" Height="10" Fill="DarkGray"/>
                <Ellipse Margin="23, 13, 0, 0" Width="3" Height="3" Fill="Black"/>
                <Ellipse Margin="23, 4, 0, 0" Width="3" Height="3" Fill="Black"/>
                <Ellipse Margin="14, 13, 0, 0" Width="3" Height="3" Fill="Black"/>
                <Ellipse Margin="14, 4, 0, 0" Width="3" Height="3" Fill="Black"/>
            </Canvas.Children>
        </Canvas>
    </DataTemplate>
</ResourceDictionary>