Mercurial > silverbladetech
comparison SilverlightGlimpse/SilverlightValidation/Views/UserView.xaml @ 69:a0bcd783e612
Latest work
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 11:06:10 +0100 |
parents | |
children | 86ed4919b126 |
comparison
equal
deleted
inserted
replaced
68:81337ebf885a | 69:a0bcd783e612 |
---|---|
1 <c:ChildWindow x:Class="SilverlightValidation.Views.UserView" | |
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
4 xmlns:c="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" | |
5 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
6 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
7 xmlns:p="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls" | |
8 xmlns:s="clr-namespace:System;assembly=mscorlib" | |
9 xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" | |
10 Title="Add User" | |
11 Width="500" | |
12 Height="400"> | |
13 | |
14 <Grid x:Name="LayoutRoot" Background="White"> | |
15 | |
16 <Grid.RowDefinitions> | |
17 <RowDefinition Height="30" /> | |
18 <RowDefinition Height="30" /> | |
19 <RowDefinition Height="30" /> | |
20 <RowDefinition Height="30" /> | |
21 <RowDefinition Height="30" /> | |
22 <RowDefinition Height="30" /> | |
23 <RowDefinition Height="50" /> | |
24 <RowDefinition Height="120" /> | |
25 </Grid.RowDefinitions> | |
26 <Grid.ColumnDefinitions> | |
27 <ColumnDefinition Width="30" /> | |
28 <ColumnDefinition Width="100" /> | |
29 <ColumnDefinition Width="300" /> | |
30 <ColumnDefinition Width="30" /> | |
31 <ColumnDefinition Width="30" /> | |
32 </Grid.ColumnDefinitions> | |
33 | |
34 <TextBlock Grid.Row="1" | |
35 Grid.Column="1" | |
36 Style="{StaticResource LabelStyle}" | |
37 Text="Username:" /> | |
38 | |
39 <TextBox x:Name="tbUsername" | |
40 Grid.Row="1" | |
41 Grid.Column="2" | |
42 Style="{StaticResource TextBoxStyle}" | |
43 Text="{Binding Username, | |
44 Mode=TwoWay, | |
45 ValidatesOnNotifyDataErrors=True, | |
46 NotifyOnValidationError=True}" /> | |
47 | |
48 <sdk:DescriptionViewer Grid.Row="1" | |
49 Grid.Column="3" | |
50 Width="20" | |
51 Description="Required" | |
52 Target="{Binding ElementName=tbUsername}" /> | |
53 | |
54 <TextBlock Grid.Row="2" | |
55 Grid.Column="1" | |
56 Style="{StaticResource LabelStyle}" | |
57 Text="Password:" /> | |
58 | |
59 <PasswordBox x:Name="tbPassword" | |
60 Grid.Row="2" | |
61 Grid.Column="2" | |
62 Password="{Binding Password, | |
63 Mode=TwoWay, | |
64 ValidatesOnNotifyDataErrors=True, | |
65 NotifyOnValidationError=True}" | |
66 Style="{StaticResource PasswordBoxStyle}" /> | |
67 | |
68 <sdk:DescriptionViewer Grid.Row="2" | |
69 Grid.Column="3" | |
70 Width="20" | |
71 Description="Required" | |
72 Target="{Binding ElementName=tbPassword}" /> | |
73 | |
74 <TextBlock Grid.Row="3" | |
75 Grid.Column="1" | |
76 Style="{StaticResource LabelStyle}" | |
77 Text="Email:" /> | |
78 | |
79 <TextBox x:Name="tbEmail" | |
80 Grid.Row="3" | |
81 Grid.Column="2" | |
82 Style="{StaticResource TextBoxStyle}" | |
83 Text="{Binding Email, | |
84 Mode=TwoWay, | |
85 ValidatesOnNotifyDataErrors=True, | |
86 NotifyOnValidationError=True}" /> | |
87 | |
88 <sdk:DescriptionViewer Grid.Row="3" | |
89 Grid.Column="3" | |
90 Width="20" | |
91 Description="Required" | |
92 Target="{Binding ElementName=tbEmail}" /> | |
93 | |
94 <TextBlock Grid.Row="4" | |
95 Grid.Column="1" | |
96 Style="{StaticResource LabelStyle}" | |
97 Text="Date of Birth:" /> | |
98 | |
99 <sdk:DatePicker x:Name="dpDateOfBirth" | |
100 Grid.Row="4" | |
101 Grid.Column="2" | |
102 KeyDown="DatePicker_KeyDown" | |
103 SelectedDate="{Binding DateOfBirth, | |
104 Mode=TwoWay, | |
105 ValidatesOnNotifyDataErrors=True, | |
106 NotifyOnValidationError=True}" | |
107 Style="{StaticResource DatePickerStyle}" /> | |
108 <sdk:DescriptionViewer Grid.Row="4" | |
109 Grid.Column="3" | |
110 Width="20" | |
111 Description="Required" | |
112 Target="{Binding ElementName=dpDateOfBirth}" /> | |
113 | |
114 <TextBlock x:Name="tbDescription" | |
115 Grid.Row="5" | |
116 Grid.Column="1" | |
117 Style="{StaticResource LabelStyle}" | |
118 Text="Description:" /> | |
119 | |
120 <TextBox Grid.Row="5" | |
121 Grid.Column="2" | |
122 Style="{StaticResource TextBoxStyle}" | |
123 Text="{Binding Description}" /> | |
124 <StackPanel Grid.Row="6" | |
125 Grid.Column="2" | |
126 HorizontalAlignment="Right" | |
127 Orientation="Horizontal"> | |
128 <Button Command="{Binding OkCommand}" | |
129 Content="OK" | |
130 Style="{StaticResource ButtonStyle}" /> | |
131 <Button Command="{Binding CancelCommand}" | |
132 Content="Cancel" | |
133 Style="{StaticResource ButtonStyle}" /> | |
134 </StackPanel> | |
135 | |
136 <sdk:ValidationSummary Grid.Row="7" | |
137 Grid.Column="1" | |
138 Grid.ColumnSpan="2" | |
139 Style="{StaticResource ValidationSummaryStyle}" /> | |
140 | |
141 </Grid> | |
142 </c:ChildWindow> |