Ignore:
Timestamp:
Jul 19, 2010, 9:29:50 PM (11 years ago)
Author:
schomburg
Message:

Limitation on Kuehn Signature Generation editable by User
beta version of helpfile Gen_Kuehn_Sig_Tab.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PKCS1/WpfControls/Components/SigGenKuehnControl.xaml

    r1742 r1743  
    1 <UserControl x:Class="PKCS1.WpfControls.Components.SigGenKuehnControl"
     1<UserControl x:Class="PKCS1.WpfControls.Components.SigGenKuehnControl" x:Name="This"
    22    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    33    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     4    xmlns:my="clr-namespace:PKCS1.WpfResources"
     5    xmlns:lib="clr-namespace:PKCS1.Library"
    46    VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
     7    <UserControl.Resources>
     8        <my:ErrorsToMessageConverter x:Key="eToMConverter" />
     9    </UserControl.Resources>
    510    <Grid>
    611        <Grid.RowDefinitions>
     
    2227                        <RowDefinition Height="auto" />
    2328                        <RowDefinition Height="auto" />
    24                         <RowDefinition Height="auto" />
     29                        <RowDefinition Height="*" />
    2530                    </Grid.RowDefinitions>
    2631                    <Label Grid.Row="0" Name="lblRsaKeySize" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">RSA-Schlüsselgröße (in Bit):</Label>
    2732                    <Label Grid.Row="1" Name="lblPublicKey" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Öffentlicher Schlüssel:</Label>
     33                    <Label Grid.Row="2" Name="lblIterations" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Anzahl an Iterationen:</Label>
    2834                </Grid>
    2935                <!-- middle -->
     
    3238                        <RowDefinition Height="auto" />
    3339                        <RowDefinition Height="auto" />
     40                        <RowDefinition Height="auto" />
    3441                        <RowDefinition Height="*" />
    3542                    </Grid.RowDefinitions>
    3643                    <Label Grid.Row="0" Name="lblRsaKeySizeRes" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></Label>
    3744                    <Label Grid.Row="1" Name="lblPublicKeyRes" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></Label>
     45                    <TextBox Grid.Row="2" Name="tbIterations" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50">                       
     46                        <Binding ElementName="This" Path="Signature.Iterations" UpdateSourceTrigger="PropertyChanged">
     47                            <Binding.ValidationRules>
     48                                <my:NumberValidationRule UpperBound="500000" LowerBound="0" />
     49                            </Binding.ValidationRules>
     50                        </Binding>
     51                    </TextBox>
     52                    <TextBlock Grid.Row="3"  Foreground="Red" FontWeight="Bold" FontSize="10"
     53                                Text="{Binding ElementName=tbIterations,
     54                                Path=(Validation.Errors),
     55                                Converter={StaticResource eToMConverter}}" />
    3856                </Grid>
    3957                <!-- right -->
Note: See TracChangeset for help on using the changeset viewer.