source: trunk/CrypPlugins/Wizard/WizardControl.xaml @ 2346

Last change on this file since 2346 was 2346, checked in by sauer, 11 years ago

Wizard:

  • added task description label to control
  • updated config files accordingly
File size: 5.3 KB
Line 
1<UserControl x:Class="Wizard.WizardControl"
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"
6             mc:Ignorable="d"
7             d:DesignHeight="300" d:DesignWidth="600">
8    <UserControl.Resources>
9        <BitmapImage x:Key="Analyse" UriSource="Images/Analyse.png"/>
10        <BitmapImage x:Key="Classic" UriSource="Images/Classic.png"/>
11        <BitmapImage x:Key="Modern" UriSource="Images/Modern.png"/>
12        <BitmapImage x:Key="Indiv" UriSource="Images/Indiv.png"/>
13        <BitmapImage x:Key="Calc" UriSource="Images/Calc.png"/>
14        <BitmapImage x:Key="EnDeCrypt" UriSource="Images/EnDeCrypt.png"/>
15        <BitmapImage x:Key="Key" UriSource="Images/Key.png"/>
16        <BitmapImage x:Key="Hash" UriSource="Images/Hash.png"/>
17        <BitmapImage x:Key="ADFGVX" UriSource="Images/ADFGVX.png"/>
18        <BitmapImage x:Key="AES" UriSource="Images/AES.png"/>
19        <BitmapImage x:Key="DES" UriSource="Images/DES.png"/>
20        <BitmapImage x:Key="Enigma" UriSource="Images/Enigma.png"/>
21        <BitmapImage x:Key="MD5" UriSource="Images/MD5.png"/>
22        <BitmapImage x:Key="Playfair" UriSource="Images/Playfair.png"/>
23        <BitmapImage x:Key="Primes" UriSource="Images/Primes.png"/>
24        <BitmapImage x:Key="RIPEMD160" UriSource="Images/RIPEMD160.png"/>
25        <BitmapImage x:Key="RSA" UriSource="Images/RSA.png"/>
26        <BitmapImage x:Key="Scytale" UriSource="Images/Scytale.png"/>
27        <BitmapImage x:Key="SDES" UriSource="Images/SDES.png"/>
28        <BitmapImage x:Key="SHA" UriSource="Images/SHA.png"/>
29        <BitmapImage x:Key="Substitution" UriSource="Images/Substitution.png"/>
30        <BitmapImage x:Key="TEA" UriSource="Images/TEA.png"/>
31        <BitmapImage x:Key="Tiger" UriSource="Images/Tiger.png"/>
32        <BitmapImage x:Key="Transposition" UriSource="Images/Transposition.png"/>
33        <BitmapImage x:Key="Trivium" UriSource="Images/Trivium.png"/>
34        <BitmapImage x:Key="Twofish" UriSource="Images/Twofish.png"/>
35        <BitmapImage x:Key="Vernam" UriSource="Images/Vernam.png"/>
36        <BitmapImage x:Key="Vigenere" UriSource="Images/Vigenere.png"/>
37        <BitmapImage x:Key="Whirlpool" UriSource="Images/Whirlpool.png"/>
38        <BitmapImage x:Key="XOR" UriSource="Images/XOR.png"/>
39        <BitmapImage x:Key="RC2" UriSource="Images/RC2.png"/>
40        <BitmapImage x:Key="Caesar" UriSource="Images/Caesar.png"/>
41        <BitmapImage x:Key="Sym" UriSource="Images/Sym.png"/>
42        <BitmapImage x:Key="Asym" UriSource="Images/Asym.png"/>
43    </UserControl.Resources>
44    <Grid>
45        <Grid.RowDefinitions>
46            <RowDefinition Height="Auto" />
47            <RowDefinition Height="Auto" />
48            <RowDefinition />
49            <RowDefinition Height="Auto" />
50        </Grid.RowDefinitions>
51        <Label HorizontalAlignment="Center" Name="taskHeader" FontSize="18" />
52        <Label HorizontalAlignment="Stretch" Name="descHeader" FontSize="13" Grid.Row="1" Margin="5" />
53        <Grid HorizontalAlignment="Stretch" Name="grid1" VerticalAlignment="Stretch" Grid.Row="2" Margin="10" >
54        <Grid.ColumnDefinitions>
55            <ColumnDefinition Width="Auto" />
56            <ColumnDefinition />
57        </Grid.ColumnDefinitions>
58            <ScrollViewer  HorizontalAlignment="Stretch" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" Name="radioButtonScroll" >
59                <StackPanel Name="radioButtonStackPanel" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
60            </ScrollViewer>
61            <ScrollViewer Name="descScroll" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" Grid.Column="1" >
62                <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinHeight="{Binding ElementName=radioButtonScroll, Path=ActualHeight}">
63                    <Grid.RowDefinitions>
64                        <RowDefinition Height="Auto" />
65                        <RowDefinition Height="Auto" />
66                    </Grid.RowDefinitions>
67                    <Grid.ColumnDefinitions>
68                        <ColumnDefinition />
69                    </Grid.ColumnDefinitions>
70                    <Label HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Content="{Loc Description}" />
71                    <TextBlock Name="description" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Left" Grid.Row="1" />
72                </Grid>
73            </ScrollViewer>
74        </Grid>
75        <StackPanel Height="Auto" HorizontalAlignment="Right" Name="buttonStackPanel" VerticalAlignment="Bottom" Margin="2" Grid.Row="3" Orientation="Horizontal" >
76            <Button Content="{Loc BackButton}" Height="23" Name="backButton" Width="75" Margin="1" Click="backButton_Click"/>
77            <Button Content="{Loc NextButton}" Height="23" Name="nextButton" Width="75" Margin="1" IsDefault="True" Click="nextButton_Click"/>
78            <Button Content="{Loc AbortButton}" Height="23" Name="abortButton" Width="75" Margin="1" Click="abortButton_Click"/>
79        </StackPanel>
80    </Grid>
81</UserControl>
Note: See TracBrowser for help on using the repository browser.