123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <Application x:Class="GCHR.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" DispatcherUnhandledException="ApplicationDispatcherUnhandledException">
- <Application.Resources>
- <ControlTemplate x:Key="GlassButton" TargetType="{x:Type Button}">
- <ControlTemplate.Resources>
- <Storyboard x:Key="Timeline1">
- <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
- <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="Timeline2">
- <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="glow" Storyboard.TargetProperty="(UIElement.Opacity)">
- <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>
- <Border BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
- <Border x:Name="border" Background="#9EBFDE" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.507*"/>
- <RowDefinition Height="0.493*"/>
- </Grid.RowDefinitions>
- <Border Grid.RowSpan="2" HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
- <Border.Background>
- <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
- <!--<GradientStop Color="#99FFFFFF" Offset="0"/>
- <GradientStop Color="#33FFFFFF" Offset="1"/>-->
- <GradientStop Color="#FF9EBFDE" Offset="0"/>
- <GradientStop Color="#FF30567A" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- </Border>
- <Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
- <Border.Background>
- <RadialGradientBrush>
- <RadialGradientBrush.RelativeTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
- <SkewTransform AngleX="0" AngleY="0"/>
- <RotateTransform Angle="0"/>
- <TranslateTransform X="-0.368" Y="-0.152"/>
- </TransformGroup>
- </RadialGradientBrush.RelativeTransform>
- <GradientStop Color="#B29EBFDE" Offset="0"/>
- <GradientStop Color="#009EBFDE" Offset="1"/>
- <!--<GradientStop Color="White" Offset="0"/>
- <GradientStop Color="LightBlue" Offset="1"/>-->
- </RadialGradientBrush>
- </Border.Background>
- </Border>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
- </Grid>
- </Border>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Opacity" TargetName="shine" Value="0.0"/>
- <Setter Property="Background" TargetName="border" Value="#FFCCCCCC"/>
- <Setter Property="Visibility" TargetName="glow" Value="Hidden"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Opacity" TargetName="shine" Value="0.4"/>
- <Setter Property="Background" TargetName="border" Value="#100000FF"/>
- <Setter Property="Visibility" TargetName="glow" Value="Hidden"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Trigger.EnterActions>
- <BeginStoryboard Storyboard="{StaticResource Timeline1}"/>
- </Trigger.EnterActions>
- <Trigger.ExitActions>
- <BeginStoryboard x:Name="Timeline2_BeginStoryboard" Storyboard="{StaticResource Timeline2}"/>
- </Trigger.ExitActions>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <ControlTemplate x:Key="GlassProgressBar" TargetType="{x:Type ProgressBar}">
- <Border BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
- <Border x:Name="border" Background="#9EBFDE" BorderBrush="#FF000000" BorderThickness="1,1,1,1" CornerRadius="4,4,4,4">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.507*"/>
- <RowDefinition Height="0.493*"/>
- </Grid.RowDefinitions>
- <Decorator Grid.RowSpan="2" Name="PART_Track">
- <Border Name="PART_Indicator" HorizontalAlignment="Left"
- Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4"
- Background="Black" />
- </Decorator>
- <Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" Width="Auto" Grid.RowSpan="2" CornerRadius="4,4,4,4">
- <Border.Background>
- <RadialGradientBrush>
- <RadialGradientBrush.RelativeTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
- <SkewTransform AngleX="0" AngleY="0"/>
- <RotateTransform Angle="0"/>
- <TranslateTransform X="-0.368" Y="-0.152"/>
- </TransformGroup>
- </RadialGradientBrush.RelativeTransform>
- <GradientStop Color="#B29EBFDE" Offset="0"/>
- <GradientStop Color="#009EBFDE" Offset="1"/>
- </RadialGradientBrush>
- </Border.Background>
- </Border>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" Grid.RowSpan="2"/>
- <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
- <Border.Background>
- <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
- <GradientStop Color="#99FFFFFF" Offset="0" />
- <GradientStop Color="#338DBDFF" Offset="1" />
- </LinearGradientBrush>
- </Border.Background>
- </Border>
- </Grid>
- </Border>
- </Border>
- <ControlTemplate.Triggers>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Application.Resources>
- </Application>
|