source: trunk/CrypPlugins/P2PEditor/GUI/Controls/GetNewCertificate.xaml @ 2277

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

the request progress is now visible by an animation

File size: 3.3 KB
Line 
1<GUI:P2PUserControl x:Class="Cryptool.P2PEditor.GUI.Controls.GetNewCertificate"
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="280" d:DesignWidth="560">   
7    <Grid Height="280" Width="550">       
8        <Grid.ColumnDefinitions>
9            <ColumnDefinition Width="75" />
10            <ColumnDefinition Width="*" />
11        </Grid.ColumnDefinitions>
12        <Grid.RowDefinitions>
13            <RowDefinition Height="90"/>
14            <RowDefinition Height="28"/>
15            <RowDefinition Height="28" />
16            <RowDefinition Height="28" />
17            <RowDefinition Height="28" />
18            <RowDefinition Height="60*" />
19        </Grid.RowDefinitions>
20       
21        <Label Content="_CrypTool 2.0 - Paporator - Certificate Generation"  Grid.ColumnSpan="2" Margin="0,0,0,56" FontSize="15" FontWeight="Bold" />
22        <TextBlock Grid.ColumnSpan="2" Margin="5,32,0,0" FlowDirection="LeftToRight">
23            Please enter the data below to request your own personal Peers@Play Certificate (needed for
24            <LineBreak/>
25            participating in our Peer2Peer network). CrypTool 2.0 will connect to our certificate server and request
26            <LineBreak/>
27            your certificate. This certificate will be stored into your Application Data folder of Windows.
28        </TextBlock>
29        <Label Content="_Username:" Target="{Binding ElementName=UsernameField}" Grid.Row="1" Grid.Column="0" />
30        <Label Content="_Email:" Target="{Binding ElementName=EmailField}" Grid.Row="2" Grid.Column="0" />
31        <Label Content="_Password:" Target="{Binding ElementName=PasswordField}" Grid.Row="3" Grid.Column="0" />
32        <Label Content="_Confirm:" Target="{Binding ElementName=ConfirmField}" Grid.Row="4" Grid.Column="0" />
33       
34        <TextBox Text="{Binding Name}" x:Name="UsernameField" Grid.Row="1" Grid.Column="1" Height="24" />
35        <TextBox Text="{Binding Name}" x:Name="EmailField" Grid.Row="2" Grid.Column="1" Height="24" />
36        <PasswordBox x:Name="PasswordField" Grid.Row="3" Grid.Column="1" Height="24" />
37        <PasswordBox x:Name="ConfirmField" Grid.Row="4" Grid.Column="1" Height="24" />
38        <Button Name="RequestButton" Content="_Request" HorizontalAlignment="Right" Width="80" Grid.Row="5" Grid.Column="1" Height="24" Click="Request_Click" Margin="0,15,12,31" />
39        <Image Name="WorldIcon" Source="..\..\images\connected.png" Grid.Column="1" Margin="302,0,92,0" Grid.Row="5" RenderTransformOrigin="0.5,0.5">
40            <Image.RenderTransform>
41                <RotateTransform x:Name="WorldIconImageRotate"/>
42            </Image.RenderTransform>
43        </Image>
44    </Grid>
45    <GUI:P2PUserControl.Resources>
46        <Storyboard x:Key="AnimateWorldIcon">
47            <DoubleAnimation Storyboard.TargetName="WorldIconImageRotate" Storyboard.TargetProperty="Angle" By="360" Duration="00:00:10" BeginTime="00:00:00" RepeatBehavior="Forever"/>
48        </Storyboard>
49    </GUI:P2PUserControl.Resources>
50</GUI:P2PUserControl>
Note: See TracBrowser for help on using the repository browser.