mirror of
https://github.com/chylex/Backup-Essentials.git
synced 2024-10-17 08:42:44 +02:00
109 lines
6.4 KiB
XML
109 lines
6.4 KiB
XML
<Page x:Class="BackupEssentials.Pages.Home"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
|
|
mc:Ignorable="d"
|
|
d:DesignWidth="{StaticResource PageWidth}" d:DesignHeight="{StaticResource PageHeight}" Background="{StaticResource PageBackground}"
|
|
Title="Home">
|
|
|
|
<Grid SnapsToDevicePixels="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="126"/>
|
|
<ColumnDefinition Width="2"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<WrapPanel Orientation="Vertical" Background="#FF3E3E3E">
|
|
<WrapPanel.Resources>
|
|
<Storyboard x:Key="AnimationMouseOver" Duration="0:0:0.05">
|
|
<ColorAnimation Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border" Duration="0:0:0.05" To="#FF494949"/>
|
|
</Storyboard>
|
|
|
|
<Storyboard x:Key="AnimationBase" Duration="0:0:0.1">
|
|
<ColorAnimation Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border" Duration="0:0:0.1" To="#FF3E3E3E"/>
|
|
</Storyboard>
|
|
|
|
<Style TargetType="{x:Type RadioButton}">
|
|
<Setter Property="Width" Value="126"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type RadioButton}">
|
|
<Border x:Name="border" BorderThickness="0" Width="Auto" Height="Auto" Background="#FF3E3E3E" BorderBrush="Black" SnapsToDevicePixels="True" Margin="0,0,0,0">
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
<VisualStateGroup.Transitions>
|
|
<VisualTransition GeneratedDuration="0:0:0.1"/>
|
|
<VisualTransition From="MouseOver" GeneratedDuration="0:0:0.05" To="Pressed"/>
|
|
</VisualStateGroup.Transitions>
|
|
<VisualState x:Name="Normal"/>
|
|
<VisualState x:Name="MouseOver"/>
|
|
<VisualState x:Name="Pressed">
|
|
<Storyboard>
|
|
<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border">
|
|
<EasingColorKeyFrame KeyTime="0" Value="#FF515151"/>
|
|
</ColorAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
<TextBlock x:Name="textBlock" Text="{TemplateBinding Content}" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center" Foreground="#FFDDDDDD" FontSize="16" Margin="10,7"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<MultiTrigger>
|
|
<MultiTrigger.Conditions>
|
|
<Condition Property="IsMouseOver" Value="True"/>
|
|
<Condition Property="IsChecked" Value="False"/>
|
|
</MultiTrigger.Conditions>
|
|
<MultiTrigger.EnterActions>
|
|
<StopStoryboard BeginStoryboardName="BeginStoryboardBase1"/>
|
|
<StopStoryboard BeginStoryboardName="BeginStoryboardBase2"/>
|
|
<BeginStoryboard Storyboard="{StaticResource AnimationMouseOver}"/>
|
|
</MultiTrigger.EnterActions>
|
|
<MultiTrigger.ExitActions>
|
|
<BeginStoryboard x:Name="BeginStoryboardBase1" Storyboard="{StaticResource AnimationBase}"/>
|
|
</MultiTrigger.ExitActions>
|
|
</MultiTrigger>
|
|
|
|
<Trigger Property="IsChecked" Value="True">
|
|
<Trigger.EnterActions>
|
|
<StopStoryboard BeginStoryboardName="BeginStoryboardBase1"/>
|
|
</Trigger.EnterActions>
|
|
<Trigger.ExitActions>
|
|
<BeginStoryboard x:Name="BeginStoryboardBase2" Storyboard="{StaticResource AnimationBase}"/>
|
|
</Trigger.ExitActions>
|
|
<Setter Property="Background" TargetName="border" Value="#FF515151"/>
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Foreground" TargetName="textBlock" Value="#FF939393"/>
|
|
<Setter Property="Background" TargetName="border" Value="#FF363636"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</WrapPanel.Resources>
|
|
|
|
<RadioButton x:Name="BackupGuide" Content="Backup guide" Checked="ChangeScreen"/>
|
|
<RadioButton x:Name="DriveBackup" Content="Drive backup" Checked="ChangeScreen"/>
|
|
<RadioButton Content="History" Checked="ChangeScreen"/>
|
|
</WrapPanel>
|
|
|
|
<Rectangle StrokeThickness="0" HorizontalAlignment="Center" Width="2" Grid.Column="1">
|
|
<Rectangle.Fill>
|
|
<LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
|
|
<GradientStop Color="#FF060606" Offset="0"/>
|
|
<GradientStop Color="#FF6C6C6C" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
|
|
<Frame x:Name="HomePageFrame" Margin="16,8" Grid.Column="2" NavigationUIVisibility="Hidden"/>
|
|
</Grid>
|
|
</Page>
|