Mercurial > silverbladetech
annotate SilverlightGlimpse/SilverlightValidation/Views/UserView.xaml @ 78:dd6bcd2535b6
Working version
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 22:43:53 +0100 |
parents | 86ed4919b126 |
children | 5172a9b9800c |
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 |
102 <TextBlock x:Name="tbDescription" | |
103 Grid.Row="5" | |
104 Grid.Column="1" | |
105 Style="{StaticResource LabelStyle}" | |
106 Text="Description:" /> | |
107 | |
108 <TextBox Grid.Row="5" | |
109 Grid.Column="2" | |
110 Style="{StaticResource TextBoxStyle}" | |
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
111 Text="{Binding IncorectBindingPath}" /> |
69 | 112 <StackPanel Grid.Row="6" |
113 Grid.Column="2" | |
114 HorizontalAlignment="Right" | |
115 Orientation="Horizontal"> | |
77
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
116 <Button x:Name="btnThrowException" |
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
117 Width="120" |
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
118 Click="btnThrowException_OnClick" |
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
119 Content="Throw Exception" |
86ed4919b126
Working version!
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
69
diff
changeset
|
120 Style="{StaticResource ButtonStyle}" /> |
69 | 121 </StackPanel> |
122 | |
123 <sdk:ValidationSummary Grid.Row="7" | |
124 Grid.Column="1" | |
125 Grid.ColumnSpan="2" | |
126 Style="{StaticResource ValidationSummaryStyle}" /> | |
127 | |
128 </Grid> | |
78
dd6bcd2535b6
Working version
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
77
diff
changeset
|
129 </UserControl> |