source: trunk/CrypPlugins/P2PEditor/GUI/Controls/ActivateEmailView.xaml @ 2463

Last change on this file since 2463 was 2463, checked in by kopal, 11 years ago
  • Password reset functionality of p2p editor implemented completely
  • some small fixes (typos, design changes)
File size: 4.3 KB
Line 
1<GUI:P2PUserControl x:Class="Cryptool.P2PEditor.GUI.Controls.ActivateEmailView"
2             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:GUI="clr-namespace:Cryptool.P2PEditor.GUI" mc:Ignorable="d"
6             d:DesignHeight="310" d:DesignWidth="693">
7    <Grid>
8    <ScrollViewer Name="ActivatePage" VerticalScrollBarVisibility="Auto">
9        <Grid Height="310" Width="670">
10            <Grid.ColumnDefinitions>
11                <ColumnDefinition Width="110" />
12                <ColumnDefinition Width="*" />
13            </Grid.ColumnDefinitions>
14            <Grid.RowDefinitions>
15                <RowDefinition Height="100"/>
16                <RowDefinition Height="56"/>
17                <RowDefinition Height="28"/>
18                <RowDefinition Height="28"/>
19                <RowDefinition Height="80" />
20                </Grid.RowDefinitions>
21            <Label Content="Account Activation"  Grid.ColumnSpan="2" Margin="0,0,0,56" FontSize="15" FontWeight="Bold" HorizontalAlignment="Center" />
22            <TextBlock Grid.ColumnSpan="2" Margin="5,32,0,0" FlowDirection="LeftToRight" HorizontalAlignment="Center">
23            Please enter the activation code which you received by email.<LineBreak/>
24            Also enter your password. After clicking the activate button your account data will<LineBreak/>
25            be stored in your local users folder.
26            </TextBlock>
27            <Label Name="MessageLabel" Foreground="Red" Grid.Row="1" Grid.ColumnSpan="2" />
28            <Label Content="_Activation Code:" Target="{Binding ElementName=ActivationCode}" Grid.Row="2" Grid.Column="0" />
29            <Label Content="_Password:" Target="{Binding ElementName=PasswordField}" Grid.Row="3" Grid.Column="0" />           
30            <TextBox Text="{Binding Name}" x:Name="ActivationCodeField" Grid.Row="2" Grid.Column="1" Height="24" />
31            <PasswordBox x:Name="PasswordField" Grid.Row="3" Grid.Column="1" Height="24" />
32            <Button Name="BackButton" Content="_Back" Height="24" HorizontalAlignment="Right" Margin="0,20,6,36" Width="54" Grid.Row="4" Grid.Column="1" Click="BackButton_Click" />
33            <Button Name="ActivateButton" Content="_Activate" Height="24" HorizontalAlignment="Left" Margin="438,20,0,36" Width="56" Grid.Column="1" Grid.Row="4" Click="ActivateButton_Click"/>
34            <Label Name="RequestLabel" Content="Activating account..." Visibility="Hidden" Target="{Binding ElementName=ConfirmField}" Grid.Row="4" Margin="0,19,325,27" HorizontalAlignment="Right" Width="151" Grid.Column="1" FontWeight="Bold" />
35            <Image Name="WorldIcon" Source="..\..\images\connected.png" Grid.Column="1" Margin="200,0,194,0" Grid.Row="4" RenderTransformOrigin="0.5,0.5">
36                <Image.RenderTransform>
37                    <RotateTransform x:Name="WorldIconImageRotate"/>
38                </Image.RenderTransform>
39            </Image>               
40            </Grid>
41    </ScrollViewer>
42    <ScrollViewer Name="OKPage" VerticalScrollBarVisibility="Auto" Visibility="Hidden">
43    <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Margin="80,55,80,53">
44            <Label FontSize="16" HorizontalContentAlignment="Center">Account successfully activated</Label>
45        <Image Name="Account" Source="..\..\images\account.png"  Margin="5,5,5,5" Width="48" />
46        <TextBlock Grid.ColumnSpan="2" Margin="15,15,15,15" FlowDirection="LeftToRight" HorizontalAlignment="Center">
47        Your new account was successfully activated and can now be used.
48        <LineBreak/>
49        Press the OK button to proceed.
50        </TextBlock>
51        <Button Name="OKButton" Content="_OK" Height="24" Width="50" Click="OKButton_Click" />
52    </StackPanel>
53    </ScrollViewer>
54    </Grid>
55    <GUI:P2PUserControl.Resources>
56        <Storyboard x:Key="AnimateWorldIcon">
57            <DoubleAnimation Storyboard.TargetName="WorldIconImageRotate" Storyboard.TargetProperty="Angle" By="360" Duration="00:00:10" BeginTime="00:00:00" RepeatBehavior="Forever"/>
58        </Storyboard>
59    </GUI:P2PUserControl.Resources>
60</GUI:P2PUserControl>
Note: See TracBrowser for help on using the repository browser.