<flyctrllib:WindowBigClose x:Class="FLY.Winder.UI.Client.UIModule.Window_Manual"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        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:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns:local="clr-namespace:FLY.Winder.UI.Client.UIModule"
        mc:Ignorable="d"
        Title="Window_Manual" WindowStartupLocation="CenterScreen" SizeToContent="WidthAndHeight" >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/FLY.Winder.UI.Client;component/Themes/Dictionary_MyStyle.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/FLY.Winder.UI.Client;component/UnitTests/UnitTests_winder.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <SolidColorBrush x:Key="Color_background" Color="#FFf1f1f1"/>
        </ResourceDictionary>
    </Window.Resources>

    <StackPanel Orientation="Vertical" Background="#4f4f4f">

            <Border Margin="5" CornerRadius="5" Background="{StaticResource Color_background}">
                <StackPanel Orientation="Vertical">
                    <TextBlock Text="内收卷" FontSize="35" Margin="3" Padding="4,0" Background="#FF636363" Foreground="White"/>
                    <WrapPanel Orientation="Horizontal">
                        <StackPanel Orientation="Vertical" Margin="10">
                            <Button x:Name="button_turn0" >
                                <Button.Template>
                                    <ControlTemplate TargetType="{x:Type Button}">
                                        
                                        <Grid x:Name="grid" Width="50" Height="50" Style="{StaticResource GridStyle_ButtonShadow}">
                                            
                                            <Ellipse x:Name="ellipse" Stretch="Uniform" Fill="White"  />
                                            <Path x:Name="path" Stretch="Uniform" Fill="{StaticResource Color_theme_static}" 
                                                    Data="{StaticResource Geometry_return}"/>
                                        </Grid>
                                        
                                        <ControlTemplate.Triggers>
                                            <Trigger Property="IsMouseOver" Value="True">
                                                <Setter TargetName="path" Property="Fill" Value="Red"/>
                                            </Trigger>
                                            <Trigger Property="IsPressed" Value="True">
                                            <Setter TargetName="grid" Property="Width" Value="60"/>
                                            <Setter TargetName="grid" Property="Height" Value="60"/>
                                            <Setter TargetName="grid" Property="Margin" Value="-5"/>
                                        </Trigger>
                                        </ControlTemplate.Triggers>
                                    </ControlTemplate>

                                </Button.Template>
                            </Button>
                            <TextBlock Text="翻转点动" Style="{StaticResource TextBlockStyle_FieldHeader}"/>
                        </StackPanel>

                        <StackPanel Orientation="Vertical" Margin="10">

                            <Button x:Name="button_org0">
                                <Button.Template>
                                    <ControlTemplate TargetType="{x:Type Button}">
                                    <Grid Style="{StaticResource GridStyle_ButtonShadow}">
                                            <Ellipse x:Name="ellipse" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" Fill="White" Width="50" Height="50" />
                                        <Path x:Name="path" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" Fill="{StaticResource Color_theme_static}" Width="50"  Height="50"
                                                  Data="{StaticResource Geometry_origin}"/>
                                        </Grid>
                                        <ControlTemplate.Triggers>
                                            <Trigger Property="IsMouseOver" Value="True">
                                                <Setter TargetName="path" Property="Fill" Value="Red"/>
                                            </Trigger>
                                            <Trigger Property="IsPressed" Value="True">
                                                <Setter TargetName="ellipse" Property="Width" Value="60"/>
                                                <Setter TargetName="ellipse" Property="Height" Value="60"/>
                                                <Setter TargetName="path" Property="Width" Value="60"/>
                                                <Setter TargetName="path" Property="Height" Value="60"/>
                                            </Trigger>
                                        </ControlTemplate.Triggers>
                                    </ControlTemplate>

                                </Button.Template>
                            </Button>
                            <TextBlock Text="翻转原点" Style="{StaticResource TextBlockStyle_FieldHeader}"/>
                        </StackPanel>
                        <StackPanel Orientation="Vertical" Margin="10">

                        <Button x:Name="button_cut0">
                                <Button.Template>
                                    <ControlTemplate TargetType="{x:Type Button}">
                                    <Grid Style="{StaticResource GridStyle_ButtonShadow}">
                                            <Ellipse x:Name="ellipse" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Fill" Fill="{StaticResource Color_theme_static}" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}" />
                                            <Path x:Name="path" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" Fill="White" Width="25"  
                                                Data="{StaticResource Geometry_cut}"/>
                                        </Grid>
                                        <ControlTemplate.Triggers>
                                            <Trigger Property="IsMouseOver" Value="True">
                                                <Setter TargetName="ellipse" Property="Fill" Value="{StaticResource Color_theme_activity}"/>
                                            </Trigger>
                                            <Trigger Property="IsPressed" Value="True">
                                                <Setter TargetName="ellipse" Property="Width" Value="60"/>
                                                <Setter TargetName="path" Property="Width" Value="28"/>
                                            </Trigger>
                                        </ControlTemplate.Triggers>
                                    </ControlTemplate>

                                </Button.Template>
                            </Button>
                            <TextBlock Text="切膜飞刀" Style="{StaticResource TextBlockStyle_FieldHeader}"/>
                        </StackPanel>
                        <StackPanel Orientation="Vertical" Margin="10">

                        <Button x:Name="button_arm0">
                                <Button.Template>
                                    <ControlTemplate TargetType="{x:Type Button}">
                                    <Grid Style="{StaticResource GridStyle_ButtonShadow}">
                                            <Ellipse x:Name="ellipse" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Fill" Fill="{StaticResource Color_theme_static}" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}" />
                                            <Path x:Name="path" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" Fill="White" Width="25"  
                                                Data="{StaticResource Geometry_offset}"/>
                                        </Grid>
                                        <ControlTemplate.Triggers>
                                            <Trigger Property="IsMouseOver" Value="True">
                                                <Setter TargetName="ellipse" Property="Fill" Value="{StaticResource Color_theme_activity}"/>
                                            </Trigger>
                                            <Trigger Property="IsPressed" Value="True">
                                                <Setter TargetName="ellipse" Property="Width" Value="60"/>
                                                <Setter TargetName="path" Property="Width" Value="28"/>
                                            </Trigger>
                                        </ControlTemplate.Triggers>
                                    </ControlTemplate>

                                </Button.Template>
                            </Button>
                            <TextBlock Text="压臂平移" Style="{StaticResource TextBlockStyle_FieldHeader}"/>
                        </StackPanel>
                    </WrapPanel>
                </StackPanel>
            </Border>
        <Border Grid.Column="1" Margin="5" CornerRadius="5" Background="{StaticResource Color_background}">
            <StackPanel Orientation="Vertical">
                <TextBlock Text="外收卷" FontSize="35" Margin="3" Padding="4,0" Background="#FF636363" Foreground="White"/>
                <WrapPanel Orientation="Horizontal">
                    <StackPanel Orientation="Vertical" Margin="10">

                        <Button x:Name="button_turn1" >
                            <Button.Template>
                                <ControlTemplate TargetType="{x:Type Button}">

                                    <Grid x:Name="grid" Width="50" Height="50" Style="{StaticResource GridStyle_ButtonShadow}">
                                        <Ellipse x:Name="ellipse" Stretch="Uniform" Fill="White"  />
                                        <Path x:Name="path" Stretch="Uniform" Fill="{StaticResource Color_theme_static}" 
                                                    Data="{StaticResource Geometry_return}"/>
                                    </Grid>

                                    <ControlTemplate.Triggers>
                                        <Trigger Property="IsMouseOver" Value="True">
                                            <Setter TargetName="path" Property="Fill" Value="Red"/>
                                        </Trigger>
                                        <Trigger Property="IsPressed" Value="True">
                                            <Setter TargetName="grid" Property="Width" Value="60"/>
                                            <Setter TargetName="grid" Property="Height" Value="60"/>
                                            <Setter TargetName="grid" Property="Margin" Value="-5"/>
                                        </Trigger>
                                    </ControlTemplate.Triggers>
                                </ControlTemplate>

                            </Button.Template>
                        </Button>
                        <TextBlock Text="翻转点动" Style="{StaticResource TextBlockStyle_FieldHeader}"/>
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="10">

                        <Button x:Name="button_org1">
                            <Button.Template>
                                <ControlTemplate TargetType="{x:Type Button}">
                                    <Grid Style="{StaticResource GridStyle_ButtonShadow}">
                                        <Ellipse x:Name="ellipse" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" Fill="White" Width="50" Height="50" />
                                        <Path x:Name="path" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" Fill="{StaticResource Color_theme_static}" Width="50"  Height="50"
                                                  Data="{StaticResource Geometry_origin}"/>
                                    </Grid>
                                    <ControlTemplate.Triggers>
                                        <Trigger Property="IsMouseOver" Value="True">
                                            <Setter TargetName="path" Property="Fill" Value="Red"/>
                                        </Trigger>
                                        <Trigger Property="IsPressed" Value="True">
                                            <Setter TargetName="ellipse" Property="Width" Value="60"/>
                                            <Setter TargetName="ellipse" Property="Height" Value="60"/>
                                            <Setter TargetName="path" Property="Width" Value="60"/>
                                            <Setter TargetName="path" Property="Height" Value="60"/>
                                        </Trigger>
                                    </ControlTemplate.Triggers>
                                </ControlTemplate>
                            </Button.Template>
                        </Button>
                        <TextBlock Text="翻转原点" Style="{StaticResource TextBlockStyle_FieldHeader}"/>
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="10">

                        <Button x:Name="button_cut1">
                            <Button.Template>
                                <ControlTemplate TargetType="{x:Type Button}">
                                    <Grid Style="{StaticResource GridStyle_ButtonShadow}">
                                        <Ellipse x:Name="ellipse" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Fill" Fill="{StaticResource Color_theme_static}" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}" />
                                        <Path x:Name="path" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" Fill="White" Width="25"  
                                                Data="{StaticResource Geometry_cut}"/>
                                    </Grid>
                                    <ControlTemplate.Triggers>
                                        <Trigger Property="IsMouseOver" Value="True">
                                            <Setter TargetName="ellipse" Property="Fill" Value="{StaticResource Color_theme_activity}"/>
                                        </Trigger>
                                        <Trigger Property="IsPressed" Value="True">
                                            <Setter TargetName="ellipse" Property="Width" Value="60"/>
                                            <Setter TargetName="path" Property="Width" Value="28"/>
                                        </Trigger>
                                    </ControlTemplate.Triggers>
                                </ControlTemplate>

                            </Button.Template>
                        </Button>
                        <TextBlock Text="切膜飞刀" Style="{StaticResource TextBlockStyle_FieldHeader}"/>
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="10">

                        <Button x:Name="button_arm1">
                            <Button.Template>
                                <ControlTemplate TargetType="{x:Type Button}">
                                    <Grid Style="{StaticResource GridStyle_ButtonShadow}">
                                        <Ellipse x:Name="ellipse" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Fill" Fill="{StaticResource Color_theme_static}" Width="50" Height="{Binding RelativeSource={RelativeSource Mode=Self},Path=Width}" />
                                        <Path x:Name="path" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Uniform" Fill="White" Width="25"  
                                                Data="{StaticResource Geometry_offset}"/>
                                    </Grid>
                                    <ControlTemplate.Triggers>
                                        <Trigger Property="IsMouseOver" Value="True">
                                            <Setter TargetName="ellipse" Property="Fill" Value="{StaticResource Color_theme_activity}"/>
                                        </Trigger>
                                        <Trigger Property="IsPressed" Value="True">
                                            <Setter TargetName="ellipse" Property="Width" Value="60"/>
                                            <Setter TargetName="path" Property="Width" Value="28"/>
                                        </Trigger>
                                    </ControlTemplate.Triggers>
                                </ControlTemplate>

                            </Button.Template>
                        </Button>
                        <TextBlock Text="压臂平移" Style="{StaticResource TextBlockStyle_FieldHeader}"/>
                    </StackPanel>
                </WrapPanel>
            </StackPanel>
        </Border>
    </StackPanel>
</flyctrllib:WindowBigClose>