comparison Chronosv2/source/Presentation/Controls/HeaderNotification.xaml @ 10:443821e55f06

Initial cleaned up add from Codeplex files
author stevenh7776 stevenhollidge@hotmail.com
date Tue, 21 Feb 2012 17:25:44 +0700
parents
children
comparison
equal deleted inserted replaced
9:904a9faadf8b 10:443821e55f06
1 <UserControl x:Class="Chronos.Presentation.Controls.HeaderNotification"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 MinWidth="250" MinHeight="25" MaxHeight="250">
5
6 <Grid x:Name="LayoutRoot" Visibility="Collapsed" Opacity="0">
7 <VisualStateManager.VisualStateGroups>
8 <VisualStateGroup x:Name="NotificationStateGroup">
9 <VisualState x:Name="HiddenState">
10 <Storyboard>
11 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)">
12 <EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0">
13 <EasingDoubleKeyFrame.EasingFunction>
14 <CubicEase EasingMode="EaseInOut"/>
15 </EasingDoubleKeyFrame.EasingFunction>
16 </EasingDoubleKeyFrame>
17 </DoubleAnimationUsingKeyFrames>
18 <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Visibility)">
19 <DiscreteObjectKeyFrame KeyTime="00:00:00.6000000">
20 <DiscreteObjectKeyFrame.Value>
21 <Visibility>Collapsed</Visibility>
22 </DiscreteObjectKeyFrame.Value>
23 </DiscreteObjectKeyFrame>
24 </ObjectAnimationUsingKeyFrames>
25 </Storyboard>
26 </VisualState>
27 <VisualState x:Name="VisibleState">
28 <Storyboard>
29 <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)">
30 <EasingDoubleKeyFrame KeyTime="00:00:00.6000000" Value="1">
31 <EasingDoubleKeyFrame.EasingFunction>
32 <CubicEase EasingMode="EaseInOut"/>
33 </EasingDoubleKeyFrame.EasingFunction>
34 </EasingDoubleKeyFrame>
35 </DoubleAnimationUsingKeyFrames>
36 <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Visibility)">
37 <DiscreteObjectKeyFrame KeyTime="00:00:00">
38 <DiscreteObjectKeyFrame.Value>
39 <Visibility>Visible</Visibility>
40 </DiscreteObjectKeyFrame.Value>
41 </DiscreteObjectKeyFrame>
42 </ObjectAnimationUsingKeyFrames>
43 </Storyboard>
44 </VisualState>
45 </VisualStateGroup>
46 </VisualStateManager.VisualStateGroups>
47
48 <Border VerticalAlignment="Top"
49 Background="{DynamicResource HighlightBrush}"
50 BorderBrush="WhiteSmoke" BorderThickness="1"
51 MinHeight="35"
52 MouseLeftButtonUp="Header_MouseLeftButtonUp">
53
54 <TextBlock x:Name="HeaderText"
55 Foreground="{DynamicResource WhiteColorBrush}" FontWeight="Light"
56 IsHitTestVisible="False"
57 HorizontalAlignment="Left" VerticalAlignment="Center" Margin="8,6,42,6"
58 Text="Welcome" TextWrapping="Wrap">
59 </TextBlock>
60 </Border>
61
62 <Button x:Name="CloseButton"
63 Click="CloseButton_Click"
64 HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,1,8,0"
65 Style="{DynamicResource MetroButtonStyle}"
66 ToolTip="Cerrar">
67 <TextBlock TextWrapping="Wrap" Text="r" FontFamily="Webdings" FontSize="13.333" Foreground="{DynamicResource WhiteColorBrush}" />
68 </Button>
69 </Grid>
70 </UserControl>