annotate Workflow/Client/Controls/UIMessage.xaml @ 98:d0c2cac12376

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