client/src/Iri.Modernisation.Controls/View/HeaderControl/ButtonHeaderControl.xaml
changeset 0 249d70e7b32d
child 4 cf756528609e
equal deleted inserted replaced
-1:000000000000 0:249d70e7b32d
       
     1 <UserControl x:Class="Iri.Modernisation.Controls.View.ButtonHeaderControl"
       
     2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
       
     3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
       
     4  
       
     5          
       
     6     Width="58" Height="42" ><!--MouseLeftButtonUp="UserControl_MouseLeftButtonUp">-->
       
     7     <UserControl.Resources>
       
     8         <Storyboard x:Name="animEnter">
       
     9             <DoubleAnimation To="1" FillBehavior="HoldEnd" Storyboard.TargetName="brushLight" Storyboard.TargetProperty="Opacity"
       
    10                                      Duration="0:0:0.1"/>
       
    11         </Storyboard>
       
    12         <Storyboard x:Name="animLeave">
       
    13             <DoubleAnimation To="0" FillBehavior="HoldEnd" Storyboard.TargetName="brushLight" Storyboard.TargetProperty="Opacity"
       
    14                                      Duration="0:0:0.4"/>
       
    15         </Storyboard>
       
    16     </UserControl.Resources>
       
    17     <Grid x:Name="LayoutRoot" Background="Transparent" MouseMove="LayoutRoot_MouseMove" MouseEnter="LayoutRoot_MouseEnter" MouseLeave="LayoutRoot_MouseLeave" Cursor="Hand">
       
    18         <Rectangle Fill="#20000000" Stroke="White" StrokeThickness="0.3" Margin="0.3" IsHitTestVisible="False" />
       
    19         <Rectangle  IsHitTestVisible="False">
       
    20             <Rectangle.Fill>
       
    21                 <RadialGradientBrush RadiusX="0.7253" RadiusY="1" GradientOrigin="0.5,0.5" Center="0.5,0.5" x:Name="brushLight" Opacity="0">
       
    22                     <GradientStop Offset="0" Color="#fFffffff"/>
       
    23                     <GradientStop Offset="0.6" Color="#ffD8935F" x:Name="transitionColor"/>
       
    24                     <GradientStop Offset="0.8" Color="#3fD8935F" x:Name="transitionSubColor"/>
       
    25                 </RadialGradientBrush>
       
    26             </Rectangle.Fill>
       
    27         </Rectangle>
       
    28         <Image x:Name="imgItem" Source="home.png" Stretch="Uniform" IsHitTestVisible="False" Margin="4" HorizontalAlignment="Center" VerticalAlignment="Center"  />
       
    29     </Grid>
       
    30 </UserControl>