source: trunk/CrypPlugins/P2PEditor/GUI/Controls/ForgotPasswordView.xaml @ 2447

Last change on this file since 2447 was 2447, checked in by kopal, 11 years ago

added password reset gui

File size: 4.2 KB
Line 
1<GUI:P2PUserControl x:Class="Cryptool.P2PEditor.GUI.Controls.ForgotPasswordView"
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="250" d:DesignWidth="693">
7    <Grid>
8    <ScrollViewer Name="RequestPage" VerticalScrollBarVisibility="Auto">
9        <Grid Height="250" Width="670">
10            <Grid.ColumnDefinitions>
11                <ColumnDefinition Width="110" />
12                <ColumnDefinition Width="*" />
13            </Grid.ColumnDefinitions>
14            <Grid.RowDefinitions>
15                <RowDefinition Height="90"/>
16                <RowDefinition Height="28"/>
17                <RowDefinition Height="28" />
18                <RowDefinition Height="80" />
19                </Grid.RowDefinitions>
20                <Label Content="Password reset"  Grid.ColumnSpan="2" Margin="0,0,0,56" FontSize="15" FontWeight="Bold" HorizontalAlignment="Center"/>
21                <TextBlock Grid.ColumnSpan="2" Margin="5,32,0,0" FlowDirection="LeftToRight" HorizontalAlignment="Center">
22            Please enter your user name so that we can send a password reset verification code to your registered.
23            <LineBreak/>
24            email address. Use this code to change your accounts password settings.
25            </TextBlock>
26            <Label Name="MessageLabel" Foreground="Red" Grid.Row="1" Grid.ColumnSpan="2" />
27            <Label Content="_Username:" Target="{Binding ElementName=UsernameField}" Grid.Row="2" Grid.Column="0" />
28                <TextBox Text="{Binding Name}" x:Name="UsernameField" Grid.Row="2" Grid.Column="1" Height="24" />
29                <Button Name="ResetButton" Content="_Reset" HorizontalAlignment="Left" Width="54" Grid.Row="3" Grid.Column="1" Height="24" Click="Request_Click" Margin="378,20,0,36" />
30            <Button Name="BackButton" Content="_Back" Height="24" HorizontalAlignment="Right" Margin="0,20,6,36" Width="54" Grid.Row="3" Grid.Column="1" Click="BackButton_Click" />
31            <Button Name="VerifyButton" Content="_Verifiy" Height="24" HorizontalAlignment="Left" Margin="438,20,0,36" Width="56" Grid.Column="1" Grid.Row="3" Click="ActivateButton_Click"/>
32            <Label Name="RequestLabel" Content="Resetting password..." Visibility="Hidden" Target="{Binding ElementName=ConfirmField}" Grid.Row="3" Margin="0,19,325,27" HorizontalAlignment="Right" Width="151" Grid.Column="1" FontWeight="Bold" />
33            <Image Name="WorldIcon" Source="..\..\images\connected.png" Grid.Column="1" Margin="200,0,194,0" Grid.Row="3" RenderTransformOrigin="0.5,0.5">
34                <Image.RenderTransform>
35                    <RotateTransform x:Name="WorldIconImageRotate"/>
36                </Image.RenderTransform>
37            </Image>               
38            </Grid>
39    </ScrollViewer>
40    <!--
41    <ScrollViewer Name="OKPage" VerticalScrollBarVisibility="Auto" Visibility="Hidden">
42    <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Margin="80,55,80,53">
43        <Label FontSize="16" HorizontalContentAlignment="Center">Account succesfully requested</Label>
44        <Image Name="Account" Source="..\..\images\account.png"  Margin="5,5,5,5" Width="48" />
45        <TextBlock Grid.ColumnSpan="2" Margin="15,15,15,15" FlowDirection="LeftToRight" HorizontalAlignment="Center">
46        Your new account was requested successfully and can be used after verification.
47        <LineBreak/>
48        Press the OK button to proceed.
49        </TextBlock>
50        <Button Name="OKButton" Content="_OK" Height="24" Width="50" Click="OKButton_Click" />
51    </StackPanel>
52    </ScrollViewer>
53    -->
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.