89
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
1 <metro:Window x:Class="Client.MainWindow"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
4 xmlns:Controls="clr-namespace:Client.Controls"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
5 xmlns:metro="http://schemas.codeplex.com/elysium/theme"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
6 Title="Messaging Client"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
7 Width="550"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
8 Height="625"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
9 MinWidth="450"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
10 MinHeight="625"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
11 Closed="Window_Closed"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
12 Icon="Images\client.ico">
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
13
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
14 <Window.Resources>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
15 <Storyboard x:Key="OrderStoryboard" Completed="OnOrderStoryboardCompleted">
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
16 <DoubleAnimation x:Name="moveOrder"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
17 Duration="00:00:05"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
18 From="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
19 Storyboard.TargetName="imageOrder"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
20 Storyboard.TargetProperty="(Canvas.Left)"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
21 To="440" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
22 </Storyboard>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
23 <Storyboard x:Key="PaymentStoryboard" Completed="OnPaymentStoryboardCompleted">
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
24 <DoubleAnimation x:Name="movePayment"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
25 Duration="00:00:05"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
26 From="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
27 Storyboard.TargetName="imagePayment"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
28 Storyboard.TargetProperty="(Canvas.Left)"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
29 To="440" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
30 </Storyboard>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
31 <Storyboard x:Key="DeliveryStoryboard" Completed="OnDeliveryStoryboardCompleted">
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
32 <DoubleAnimation x:Name="moveDelivery"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
33 Duration="00:00:05"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
34 From="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
35 Storyboard.TargetName="imageDelivery"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
36 Storyboard.TargetProperty="(Canvas.Left)"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
37 To="440" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
38 </Storyboard>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
39 <Storyboard x:Key="FadeInGiftStoryboard">
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
40 <DoubleAnimation Duration="00:00:02"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
41 From="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
42 Storyboard.TargetName="imageGift"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
43 Storyboard.TargetProperty="Opacity"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
44 To="1" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
45 </Storyboard>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
46 </Window.Resources>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
47
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
48 <TabControl>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
49 <TabItem Header="place order">
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
50 <Grid HorizontalAlignment="Center">
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
51 <Grid.ColumnDefinitions>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
52 <ColumnDefinition Width="200" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
53 <ColumnDefinition Width="100" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
54 <ColumnDefinition Width="200" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
55 </Grid.ColumnDefinitions>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
56 <Grid.RowDefinitions>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
57 <RowDefinition Height="300" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
58 <RowDefinition Height="150" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
59 <RowDefinition Height="75" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
60 </Grid.RowDefinitions>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
61
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
62 <Canvas Grid.Row="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
63 Grid.Column="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
64 Grid.ColumnSpan="3">
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
65
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
66 <Image x:Name="imageOrder"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
67 Canvas.Left="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
68 Canvas.Top="20"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
69 Height="60"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
70 HorizontalAlignment="Left"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
71 Source="Images\order.png" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
72
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
73 <Image x:Name="imagePayment"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
74 Canvas.Left="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
75 Canvas.Top="120"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
76 Height="60"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
77 HorizontalAlignment="Left"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
78 Source="Images\payment.png" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
79
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
80 <Image x:Name="imageDelivery"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
81 Canvas.Left="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
82 Canvas.Top="220"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
83 Height="60"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
84 HorizontalAlignment="Left"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
85 Source="Images\delivery.png" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
86 </Canvas>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
87
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
88 <Image x:Name="imageGift"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
89 Grid.Row="1"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
90 Grid.Column="1"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
91 Opacity="0"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
92 Source="Images\gift.png" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
93
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
94 <Controls:UIMessage x:Name="NotificationLeft"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
95 Grid.Row="2"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
96 Grid.Column="0" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
97
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
98 <Button Name="btnSubmit"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
99 Grid.Row="2"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
100 Grid.Column="1"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
101 Margin="10"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
102 Click="btnSubmit_Click"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
103 Content="Submit" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
104
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
105 <Controls:UIMessage x:Name="NotificationRight"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
106 Grid.Row="2"
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
107 Grid.Column="2" />
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
108 </Grid>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
109 </TabItem>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
110 </TabControl>
|
stevenhollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
111 </metro:Window>
|