comparison Workflow/Client/Controls/UIMessage.xaml @ 89:3c67e54e3a17

Working version
author stevenhollidge <stevenhollidge@hotmail.com>
date Mon, 30 Apr 2012 10:45:32 +0100
parents
children
comparison
equal deleted inserted replaced
88:e84dc4926a5a 89:3c67e54e3a17
1 <UserControl x:Class="Client.Controls.UIMessage"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6 x:Name="UIMessageControl"
7 mc:Ignorable="d">
8 <UserControl.Resources>
9 <SolidColorBrush x:Key="ErrorBrush" Color="#D5BD3630" />
10 <SolidColorBrush x:Key="InfoBrush" Color="#D759ABC3" />
11 <SolidColorBrush x:Key="SuccessBrush" Color="#E151A351" />
12 <SolidColorBrush x:Key="QuestionBrush" Color="#DCF9A938" />
13 <BitmapImage x:Key="ErrorImage" UriSource="../Images/error.png" />
14 <BitmapImage x:Key="InfoImage" UriSource="../Images/info.png" />
15 <BitmapImage x:Key="SuccessImage" UriSource="../Images/success.png" />
16 <BitmapImage x:Key="QuestionImage" UriSource="../Images/question.png" />
17 <Storyboard x:Key="FadeIn">
18 <DoubleAnimation BeginTime="0"
19 Duration="00:00:02"
20 From="0"
21 Storyboard.TargetName="Display"
22 Storyboard.TargetProperty="Opacity"
23 To="1" />
24 </Storyboard>
25 <Storyboard x:Key="FadeOut">
26 <DoubleAnimation BeginTime="00:00:01"
27 Duration="00:00:02"
28 From="1"
29 Storyboard.TargetName="Display"
30 Storyboard.TargetProperty="Opacity"
31 To="0" />
32 </Storyboard>
33 </UserControl.Resources>
34 <Grid x:Name="LayoutRoot" Background="White">
35
36 <Border x:Name="Display"
37 Width="200"
38 Height="70"
39 Background="Pink"
40 CornerRadius="5"
41 Opacity="0">
42 <Grid>
43 <Grid.ColumnDefinitions>
44 <ColumnDefinition Width="60" />
45 <ColumnDefinition Width="*" />
46 </Grid.ColumnDefinitions>
47
48 <Image x:Name="Icon"
49 Grid.Row="0"
50 Grid.Column="0"
51 Width="30"
52 Height="30"
53 HorizontalAlignment="Center"
54 VerticalAlignment="Center"
55 Stretch="Uniform" />
56 <TextBlock Grid.Column="1"
57 VerticalAlignment="Center"
58 Foreground="White"
59 Text="{Binding Path=Text,
60 ElementName=UIMessageControl,
61 UpdateSourceTrigger=PropertyChanged}" />
62 </Grid>
63 </Border>
64 </Grid>
65 </UserControl>