source: trunk/PKCS1/WpfControls/Components/DatablockControl.xaml @ 1650

Last change on this file since 1650 was 1650, checked in by schomburg, 11 years ago

initial commit of PKCS1 Plugin

File size: 4.9 KB
Line 
1<UserControl x:Class="PKCS1.WpfControls.Components.DatablockControl"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4     HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
5    <Grid >
6        <Grid.RowDefinitions>
7            <RowDefinition Height="auto" />
8            <RowDefinition Height="auto" />
9        </Grid.RowDefinitions>
10        <!-- Input (Upper Part) -->
11        <GroupBox Grid.Row="0" Header="Datenblock generieren" Margin="0,0,0,0">
12            <Grid>
13                <Grid.ColumnDefinitions>
14                    <ColumnDefinition Width="*" />
15                    <ColumnDefinition Width="auto" />
16                </Grid.ColumnDefinitions>
17
18                <!-- Left -->
19                <Grid Grid.Column="0">
20                    <Grid Name="innerGridLeft">
21                        <Grid.RowDefinitions>
22                            <RowDefinition Height="auto" />
23                            <RowDefinition Height="auto" />
24                            <RowDefinition Height="auto" />
25                            <RowDefinition Height="*" />
26                        </Grid.RowDefinitions>                       
27                            <!-- Text aus Datei laden -->
28                            <RadioButton Grid.Row="0" IsEnabled="False" Margin="5,5,5,5" Name="rbTextfromFile" VerticalAlignment="Top" HorizontalAlignment="Left" Checked="rbTextfromFile_Checked">Text aus Datei laden</RadioButton>
29                            <TextBox Grid.Row="1" IsEnabled="False" Height="20" MinWidth="170" Margin="5,0,5,5" Name="tbInputFile" VerticalAlignment="Top" HorizontalAlignment="Left" />
30                            <Button Grid.Row="1" IsEnabled="False" Height="20" Margin="5,0,5,5" Name="button1" VerticalAlignment="Top" HorizontalAlignment="Right">Datei öffnen</Button>
31                            <!-- Text eingeben -->
32                            <RadioButton Grid.Row="2" Margin="5,5,5,5" Name="rbTextFromBox" HorizontalAlignment="Left" Checked="rbTextFromBox_Checked">Text eingeben</RadioButton>
33                            <TextBox Grid.Row="3" MinHeight="85" MaxWidth="400" Margin="5,0,5,5" Name="tbInputText" TextWrapping="Wrap" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" KeyUp="tbInputText_KeyUp" >Hier bitte den zu verschluesselnden Text eingeben.</TextBox>
34                     </Grid>
35                </Grid>
36
37                <!-- Right -->
38                <Grid Grid.Column="1">
39                    <Grid.RowDefinitions>
40                        <RowDefinition Height="auto" />
41                        <RowDefinition Height="auto" />
42                        <RowDefinition Height="*" />
43                    </Grid.RowDefinitions>
44                        <!-- Choose Hashfunction -->
45                        <Label Grid.Row="0" HorizontalAlignment="Right" Margin="5,0,5,0" Name="lblChooseHash" VerticalAlignment="Top" Width="115">Hashfunktion wählen</Label>
46                        <ComboBox Grid.Row="1" Height="20" HorizontalAlignment="Right" Margin="5,0,5,5" Name="cbHashFunc" VerticalAlignment="Top" Width="115" IsEditable="False" SelectionChanged="cbHashFunc_SelectionChanged"/>
47                        <Button Grid.Row="2" Height="25" HorizontalAlignment="Right" Margin="5,5,5,5" Name="bGenerate" VerticalAlignment="Bottom" MinWidth="100" Click="bGenerate_Click">Datenblock generieren</Button>
48                </Grid>
49            </Grid>
50        </GroupBox>
51
52        <!-- Result (Lower Part) -->
53        <GroupBox Grid.Row="1" Header="Generierter Datenblock" Name="groupBox2"  Margin="0,15,0,0" VerticalAlignment="Bottom">
54            <Grid Name="grid2">
55                <Grid.RowDefinitions>
56                    <RowDefinition Height="auto" />
57                    <RowDefinition Height="auto" />
58                    <RowDefinition Height="auto" />
59                    <RowDefinition Height="auto" />
60                    <RowDefinition Height="*" />
61                </Grid.RowDefinitions>
62                    <Label Grid.Row="0" Margin="0,5,0,0" Name="lblHashIdent">Hashfunktion Identifier</Label>
63                    <Label Grid.Row="0" Margin="150,5,0,0" Name="lblHashIdentLength"></Label>
64                    <TextBox Grid.Row="1" Height="35" Margin="5,0,5,0" Name="tbHashIdent" TextWrapping="Wrap" MaxWidth="450" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" TextChanged="tbHashIdent_TextChanged"/>               
65                    <Label Grid.Row="2" Margin="0,5,0,0" Name="lblHashDigest">Hashwert</Label>
66                    <Label Grid.Row="2" Margin="150,5,0,0" Name="lblHashDigestLength"></Label>
67                    <TextBox Grid.Row="3" Height="35" Margin="5,0,5,0" Name="tbHashDigest" TextWrapping="Wrap" MaxWidth="450" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" TextChanged="tbHashDigest_TextChanged"/>               
68            </Grid>
69        </GroupBox>
70    </Grid>
71</UserControl>
Note: See TracBrowser for help on using the repository browser.