| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"                    xmlns:controls="clr-namespace:CyberX8_Themes.CustomControls"                    xmlns:local="CyberX8_Themes.Style">    <Style TargetType="{x:Type controls:WindowButtonBase}">        <Setter Property="Margin" Value="0 0 1 0"></Setter>        <Setter Property="Template">            <Setter.Value>                <ControlTemplate TargetType="{x:Type controls:WindowButtonBase}">                    <Border  x:Name="bg" Background="Transparent" Width="25" Height="25">                        <ContentPresenter x:Name="content" HorizontalAlignment="Center" VerticalAlignment="Center"  Opacity="1"></ContentPresenter>                    </Border>                    <!--<ControlTemplate.Triggers>                        <Trigger Property="IsMouseOver" Value="true">                            <Setter Property="Background" Value="#333" TargetName="bg"></Setter>                            <Setter Property="Opacity" Value="1" TargetName="content"></Setter>                        </Trigger>                    </ControlTemplate.Triggers>-->                </ControlTemplate>            </Setter.Value>        </Setter>    </Style>    <Style TargetType="{x:Type controls:WindowButtonClose}">        <Setter Property="Margin" Value="0 0 1 0"></Setter>        <Setter Property="Template">            <Setter.Value>                <ControlTemplate TargetType="{x:Type controls:WindowButtonClose}">                    <Border  x:Name="bg" Background="Transparent" Width="25" Height="25">                        <ContentPresenter x:Name="content" HorizontalAlignment="Center" VerticalAlignment="Center"  Opacity="0.5" RenderTransformOrigin="0.5 0.5">                            <ContentPresenter.RenderTransform>                                <RotateTransform x:Name="angleRotateTransform" ></RotateTransform>                            </ContentPresenter.RenderTransform>                        </ContentPresenter>                    </Border>                    <ControlTemplate.Triggers>                        <Trigger Property="IsMouseOver" Value="true">                            <Setter Property="Background" Value="Red" TargetName="bg"></Setter>                            <Setter Property="Opacity" Value="1" TargetName="content"></Setter>                            <Trigger.EnterActions>                                <BeginStoryboard>                                    <Storyboard>                                        <DoubleAnimation Storyboard.TargetName="angleRotateTransform" Storyboard.TargetProperty="Angle"                                                         From="0" To="90" Duration="0:0:0.5">                                            <DoubleAnimation.EasingFunction>                                                <BackEase EasingMode="EaseInOut"></BackEase>                                            </DoubleAnimation.EasingFunction>                                        </DoubleAnimation>                                    </Storyboard>                                </BeginStoryboard>                            </Trigger.EnterActions>                            <Trigger.ExitActions>                                <BeginStoryboard>                                    <Storyboard>                                        <DoubleAnimation Storyboard.TargetName="angleRotateTransform" Storyboard.TargetProperty="Angle"                                                         From="90" To="0" Duration="0:0:0.5">                                            <DoubleAnimation.EasingFunction>                                                <BackEase EasingMode="EaseInOut"></BackEase>                                            </DoubleAnimation.EasingFunction>                                        </DoubleAnimation>                                    </Storyboard>                                </BeginStoryboard>                            </Trigger.ExitActions>                        </Trigger>                    </ControlTemplate.Triggers>                </ControlTemplate>            </Setter.Value>        </Setter>    </Style></ResourceDictionary>
 |