<UserControl x:Class="HeBianGu.App.Disk.SpaceControl"
             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:h="https://github.com/HeBianGu"
             xmlns:local="clr-namespace:HeBianGu.App.Disk"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             d:DesignHeight="450"
             d:DesignWidth="800"
             mc:Ignorable="d">
    <Grid>
        <StackPanel Width="250" HorizontalAlignment="Center" VerticalAlignment="Center">
            <TextBlock FontSize="88"
                       Foreground="{DynamicResource {x:Static h:BrushKeys.Accent}}"
                       RenderTransform="{StaticResource {x:Static h:SystemKeys.TransformGroup}}"
                       RenderTransformOrigin="0.5,0.5"
                       Style="{DynamicResource {x:Static h:TextBlockKeys.Icon}}"
                       Text="&#xe674;">
                <TextBlock.Triggers>
                    <EventTrigger RoutedEvent="Button.Loaded">
                        <BeginStoryboard>
                            <Storyboard Timeline.DesiredFrameRate="{x:Static h:StoryboardSetting.DesiredFrameRate}">
                                <DoubleAnimation RepeatBehavior="Forever"
                                                 Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
                                                 From="-10" To="0"
                                                 Duration="0:0:0.2">
                                    <DoubleAnimation.EasingFunction>
                                        <ElasticEase />
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </TextBlock.Triggers>
            </TextBlock>

            <TextBlock Margin="0,20"
                       Foreground="{DynamicResource {x:Static h:BrushKeys.ForegroundTitle}}"
                       Style="{DynamicResource {x:Static h:TextBlockKeys.Default}}"
                       Text="私密文件存在这里更安全" />

            <h:PasswordBox Margin="0,15,0,20" HorizontalAlignment="Stretch" BorderBrush="{DynamicResource {x:Static h:BrushKeys.Dark0_8}}" />

            <Button Width="Auto" Content="进入隐藏空间" Style="{DynamicResource {x:Static h:ButtonKeys.Dynamic}}" />
        </StackPanel>
    </Grid>
</UserControl>
