Mercurial > silverbladetech
annotate SilverlightGlimpse/SilverlightValidation/Views/UserView.xaml @ 79:5172a9b9800c
Ready to upload to codeplex
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 23:07:23 +0100 |
parents | dd6bcd2535b6 |
children |
rev | line source |
---|---|
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
1 <UserControl x:Class="SilverlightValidation.Views.UserView" |
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
4 xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"> |
69 | 5 |
6 <Grid x:Name="LayoutRoot" Background="White"> | |
7 | |
8 <Grid.RowDefinitions> | |
9 <RowDefinition Height="30" /> | |
10 <RowDefinition Height="30" /> | |
11 <RowDefinition Height="30" /> | |
12 <RowDefinition Height="30" /> | |
13 <RowDefinition Height="30" /> | |
14 <RowDefinition Height="30" /> | |
15 <RowDefinition Height="50" /> | |
16 <RowDefinition Height="120" /> | |
17 </Grid.RowDefinitions> | |
18 <Grid.ColumnDefinitions> | |
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
19 <ColumnDefinition Width="*" /> |
69 | 20 <ColumnDefinition Width="100" /> |
21 <ColumnDefinition Width="300" /> | |
22 <ColumnDefinition Width="30" /> | |
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
23 <ColumnDefinition Width="*" /> |
69 | 24 </Grid.ColumnDefinitions> |
25 | |
26 <TextBlock Grid.Row="1" | |
27 Grid.Column="1" | |
28 Style="{StaticResource LabelStyle}" | |
29 Text="Username:" /> | |
30 | |
31 <TextBox x:Name="tbUsername" | |
32 Grid.Row="1" | |
33 Grid.Column="2" | |
34 Style="{StaticResource TextBoxStyle}" | |
35 Text="{Binding Username, | |
36 Mode=TwoWay, | |
37 ValidatesOnNotifyDataErrors=True, | |
38 NotifyOnValidationError=True}" /> | |
39 | |
40 <sdk:DescriptionViewer Grid.Row="1" | |
41 Grid.Column="3" | |
42 Width="20" | |
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
43 Description="Required" /> |
69 | 44 |
45 <TextBlock Grid.Row="2" | |
46 Grid.Column="1" | |
47 Style="{StaticResource LabelStyle}" | |
48 Text="Password:" /> | |
49 | |
50 <PasswordBox x:Name="tbPassword" | |
51 Grid.Row="2" | |
52 Grid.Column="2" | |
53 Password="{Binding Password, | |
54 Mode=TwoWay, | |
55 ValidatesOnNotifyDataErrors=True, | |
56 NotifyOnValidationError=True}" | |
57 Style="{StaticResource PasswordBoxStyle}" /> | |
58 | |
59 <sdk:DescriptionViewer Grid.Row="2" | |
60 Grid.Column="3" | |
61 Width="20" | |
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
62 Description="Required" /> |
69 | 63 |
64 <TextBlock Grid.Row="3" | |
65 Grid.Column="1" | |
66 Style="{StaticResource LabelStyle}" | |
67 Text="Email:" /> | |
68 | |
69 <TextBox x:Name="tbEmail" | |
70 Grid.Row="3" | |
71 Grid.Column="2" | |
72 Style="{StaticResource TextBoxStyle}" | |
73 Text="{Binding Email, | |
74 Mode=TwoWay, | |
75 ValidatesOnNotifyDataErrors=True, | |
76 NotifyOnValidationError=True}" /> | |
77 | |
78 <sdk:DescriptionViewer Grid.Row="3" | |
79 Grid.Column="3" | |
80 Width="20" | |
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
81 Description="Required" /> |
69 | 82 |
83 <TextBlock Grid.Row="4" | |
84 Grid.Column="1" | |
85 Style="{StaticResource LabelStyle}" | |
86 Text="Date of Birth:" /> | |
87 | |
88 <sdk:DatePicker x:Name="dpDateOfBirth" | |
89 Grid.Row="4" | |
90 Grid.Column="2" | |
91 KeyDown="DatePicker_KeyDown" | |
92 SelectedDate="{Binding DateOfBirth, | |
93 Mode=TwoWay, | |
94 ValidatesOnNotifyDataErrors=True, | |
95 NotifyOnValidationError=True}" | |
96 Style="{StaticResource DatePickerStyle}" /> | |
97 <sdk:DescriptionViewer Grid.Row="4" | |
98 Grid.Column="3" | |
99 Width="20" | |
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
100 Description="Required" /> |
69 | 101 |
79
5172a9b9800c
Ready to upload to codeplex
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
78
diff
changeset
|
102 <TextBlock Grid.Row="5" |
69 | 103 Grid.Column="1" |
104 Style="{StaticResource LabelStyle}" | |
105 Text="Description:" /> | |
106 | |
79
5172a9b9800c
Ready to upload to codeplex
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
78
diff
changeset
|
107 <TextBox x:Name="tbDescription" |
5172a9b9800c
Ready to upload to codeplex
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
78
diff
changeset
|
108 Grid.Row="5" |
69 | 109 Grid.Column="2" |
110 Style="{StaticResource TextBoxStyle}" | |
79
5172a9b9800c
Ready to upload to codeplex
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
78
diff
changeset
|
111 Text="{Binding DescriptionWithATypeo}" /> |
5172a9b9800c
Ready to upload to codeplex
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
78
diff
changeset
|
112 |
69 | 113 <StackPanel Grid.Row="6" |
114 Grid.Column="2" | |
115 HorizontalAlignment="Right" | |
116 Orientation="Horizontal"> | |
77
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
117 <Button x:Name="btnThrowException" |
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
118 Width="120" |
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
119 Click="btnThrowException_OnClick" |
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
120 Content="Throw Exception" |
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
121 Style="{StaticResource ButtonStyle}" /> |
69 | 122 </StackPanel> |
123 | |
124 <sdk:ValidationSummary Grid.Row="7" | |
125 Grid.Column="1" | |
126 Grid.ColumnSpan="2" | |
127 Style="{StaticResource ValidationSummaryStyle}" /> | |
128 | |
129 </Grid> | |
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
130 </UserControl> |