Mercurial > silverbladetech
comparison Chronosv2/source/Views/Login.xaml @ 10:443821e55f06
Initial cleaned up add from Codeplex files
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Tue, 21 Feb 2012 17:25:44 +0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:904a9faadf8b | 10:443821e55f06 |
---|---|
1 <chronos:WindowElement x:Class="Chronos.Views.Login" | |
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
4 xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" | |
5 xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" | |
6 xmlns:nRoute="http://nRoute/schemas/2010/xaml" | |
7 xmlns:chronos="http://chronos/schemas/2010/xaml" | |
8 Style="{StaticResource DefaultDialogWindowStyle}" | |
9 Background="{StaticResource GradientBackgroundBrush}" | |
10 StartupLocation="CenterParent" | |
11 Title="IDENTIFICATION" | |
12 ShowCloseButton="False"> | |
13 | |
14 <Grid x:Name="VisualRoot"> | |
15 <Grid.InputBindings> | |
16 <KeyBinding Gesture="CTRL+Enter" Command="{Binding InquiryCommand}" /> | |
17 </Grid.InputBindings> | |
18 | |
19 <Grid.RowDefinitions> | |
20 <RowDefinition Height="Auto" /> | |
21 <RowDefinition Height="10" /> | |
22 <RowDefinition Height="Auto" /> | |
23 <RowDefinition Height="Auto" /> | |
24 <RowDefinition Height="90" /> | |
25 <RowDefinition Height="Auto" /> | |
26 </Grid.RowDefinitions> | |
27 | |
28 <Grid Grid.Row="0"> | |
29 <Border Grid.RowSpan="4" Grid.ColumnSpan="3" | |
30 BorderBrush="{StaticResource WindowBorderBrush}" | |
31 BorderThickness="1" | |
32 Background="{StaticResource GradientBackgroundBrush}" | |
33 Padding="3.5"> | |
34 <Grid VerticalAlignment="Top"> | |
35 <Grid.RowDefinitions> | |
36 <RowDefinition Height="Auto" /> | |
37 <RowDefinition Height="Auto" /> | |
38 <RowDefinition Height="Auto" /> | |
39 <RowDefinition Height="Auto" /> | |
40 </Grid.RowDefinitions> | |
41 <Grid.ColumnDefinitions> | |
42 <ColumnDefinition Width="*" /> | |
43 <ColumnDefinition Width="*" /> | |
44 <ColumnDefinition Width="85" /> | |
45 </Grid.ColumnDefinitions> | |
46 | |
47 <TextBox Grid.Column="0" Grid.Row="0" | |
48 Text="{Binding UserId, Mode=TwoWay, ValidatesOnDataErrors=True}" | |
49 FontWeight="Bold" | |
50 IsEnabled="{Binding Path=PropertyStates[UserId].IsEditable}" | |
51 HorizontalAlignment="Left" VerticalAlignment="Center" | |
52 Width="220" MaxLength="50" Margin="3.5"> | |
53 <i:Interaction.Behaviors> | |
54 <chronos:TextBoxWatermarkBehavior Label="USERNAME" LabelStyle="{StaticResource WatermarkTextBlockStyle}" /> | |
55 </i:Interaction.Behaviors> | |
56 </TextBox> | |
57 | |
58 <PasswordBox Grid.Column="0" Grid.Row="1" | |
59 chronos:PasswordBoxHelper.BoundPassword="{Binding Password, Mode=TwoWay, UpdateSourceTrigger=Default, ValidatesOnDataErrors=True}" | |
60 FontWeight="Bold" | |
61 IsEnabled="{Binding Path=PropertyStates[Password].IsEditable}" | |
62 HorizontalAlignment="Left" VerticalAlignment="Center" | |
63 Width="220" MaxLength="50" Margin="3.5"> | |
64 <i:Interaction.Behaviors> | |
65 <chronos:PasswordBoxWatermarkBehavior Label="PASSWORD" LabelStyle="{StaticResource WatermarkTextBlockStyle}" /> | |
66 </i:Interaction.Behaviors> | |
67 </PasswordBox> | |
68 | |
69 <Button Grid.Column="1" Grid.Row="1" | |
70 Style="{StaticResource HyperlinkButtonStyle}" | |
71 Margin="3.5" | |
72 Content="SIGN IN" | |
73 FontWeight="Bold" FontSize="10" | |
74 HorizontalAlignment="Left" | |
75 VerticalAlignment="Center" | |
76 Command="{Binding InquiryCommand}" | |
77 IsDefault="True"> | |
78 </Button> | |
79 | |
80 <CheckBox Grid.Column="0" Grid.Row="2" | |
81 FontSize="{StaticResource ControlContentFontSize}" | |
82 Content="Remember my password" | |
83 Margin="3.5" VerticalAlignment="Center" | |
84 Opacity="0.6" /> | |
85 <CheckBox Grid.Column="0" Grid.Row="3" | |
86 FontSize="{StaticResource ControlContentFontSize}" | |
87 Content="Remember me" | |
88 Margin="3.5" VerticalAlignment="Center" | |
89 Opacity="0.6" /> | |
90 <CheckBox Grid.Column="1" Grid.Row="3" | |
91 FontSize="{StaticResource ControlContentFontSize}" | |
92 Content="Sign me in automatically" | |
93 Margin="3.5" VerticalAlignment="Center" | |
94 Opacity="0.6" /> | |
95 </Grid> | |
96 </Border> | |
97 </Grid> | |
98 | |
99 <Button Grid.Row="2" | |
100 Style="{StaticResource MetroButtonStyle}" | |
101 FontWeight="Normal" FontSize="16" | |
102 Content="create new account" | |
103 HorizontalAlignment="Left" | |
104 VerticalAlignment="Bottom"> | |
105 </Button> | |
106 | |
107 <Button Grid.Row="3" | |
108 Style="{StaticResource MetroButtonStyle}" | |
109 FontWeight="Normal" FontSize="16" | |
110 Content="forgot your password" | |
111 HorizontalAlignment="Left" | |
112 VerticalAlignment="Top"> | |
113 </Button> | |
114 | |
115 <Button Grid.Row="5" | |
116 Style="{StaticResource HyperlinkButtonStyle}" | |
117 Margin="3.5" | |
118 FontWeight="Bold" | |
119 Content="CANCEL" | |
120 Command="{Binding CloseCommand}" | |
121 HorizontalAlignment="Right" VerticalAlignment="Center" | |
122 IsCancel="True"> | |
123 </Button> | |
124 </Grid> | |
125 </chronos:WindowElement> |