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

Last change on this file since 2426 was 2426, checked in by sauer, 10 years ago

Wizard: sample input

File size: 7.4 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
44        <Style TargetType="RadioButton">
45            <Style.Triggers>
46                <EventTrigger RoutedEvent="RadioButton.Checked">
47                    <BeginStoryboard>
48                        <Storyboard>
49                            <DoubleAnimation Storyboard.TargetProperty="Content.Background.Opacity" To="1" From="0" Duration="0:0:0.5"/>
50                        </Storyboard>
51                    </BeginStoryboard>
52                </EventTrigger>
53            </Style.Triggers>
54        </Style>
55       
56        <Storyboard x:Key="MainGridStoryboardNext1">
57            <DoubleAnimation Storyboard.TargetName="MainGridTransform" Storyboard.TargetProperty="X" From="0" To="-1500" Duration="0:0:0.5" Completed="SetNextContent"/>
58        </Storyboard>
59        <Storyboard x:Key="MainGridStoryboardNext2">
60            <DoubleAnimation Storyboard.TargetName="MainGridTransform" Storyboard.TargetProperty="X" From="1500" To="0" Duration="0:0:0.5"/>
61        </Storyboard>
62
63        <Storyboard x:Key="MainGridStoryboardBack1">
64            <DoubleAnimation Storyboard.TargetName="MainGridTransform" Storyboard.TargetProperty="X" From="0" To="1500" Duration="0:0:0.5" Completed="SetLastContent"/>
65        </Storyboard>
66        <Storyboard x:Key="MainGridStoryboardBack2">
67            <DoubleAnimation Storyboard.TargetName="MainGridTransform" Storyboard.TargetProperty="X" From="-1500" To="0" Duration="0:0:0.5"/>
68        </Storyboard>
69    </UserControl.Resources>
70    <Grid>
71        <Grid.RowDefinitions>
72            <RowDefinition Height="Auto" />
73            <RowDefinition Height="Auto" />
74            <RowDefinition />
75            <RowDefinition Height="Auto" />
76        </Grid.RowDefinitions>
77
78        <Grid.RenderTransform>
79            <TranslateTransform x:Name="MainGridTransform"/>
80        </Grid.RenderTransform>
81
82        <Label HorizontalAlignment="Center" Name="taskHeader" FontSize="18" />
83        <Label HorizontalAlignment="Stretch" Name="descHeader" FontSize="13" Grid.Row="1" Margin="5" />
84       
85        <Grid HorizontalAlignment="Stretch" Name="categoryGrid" VerticalAlignment="Stretch" Grid.Row="2" Margin="10" >
86        <Grid.ColumnDefinitions>
87            <ColumnDefinition Width="Auto" />
88            <ColumnDefinition />
89        </Grid.ColumnDefinitions>
90            <ScrollViewer  HorizontalAlignment="Stretch" VerticalAlignment="Center" VerticalScrollBarVisibility="Auto" Name="radioButtonScroll">
91                <StackPanel Name="radioButtonStackPanel" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
92            </ScrollViewer>
93            <Border BorderBrush="LightSeaGreen" BorderThickness="1" Grid.Column="1" CornerRadius="5" Background="#FFC8DCF5" MinHeight="{Binding ElementName=radioButtonScroll, Path=ActualHeight}">
94                <ScrollViewer Name="descScroll" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" >
95                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
96                        <Grid.RowDefinitions>
97                            <RowDefinition Height="Auto" />
98                            <RowDefinition Height="Auto" />
99                        </Grid.RowDefinitions>
100                        <Grid.ColumnDefinitions>
101                            <ColumnDefinition />
102                        </Grid.ColumnDefinitions>
103                        <Label HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Content="{Loc Description}" />
104                        <TextBlock Name="description" TextWrapping="Wrap" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextAlignment="Left" Grid.Row="1" />
105                    </Grid>
106                </ScrollViewer>
107            </Border>
108        </Grid>
109
110        <ScrollViewer Grid.Row="2" HorizontalAlignment="Stretch" Name="inputPanel" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
111            <StackPanel Name="inputStack" Orientation="Vertical"/>
112        </ScrollViewer>
113       
114        <StackPanel Height="Auto" HorizontalAlignment="Right" Name="buttonStackPanel" VerticalAlignment="Bottom" Margin="2" Grid.Row="3" Orientation="Horizontal" >
115            <Button Content="{Loc BackButton}" Height="23" Name="backButton" Width="75" Margin="1" Click="backButton_Click"/>
116            <Button Content="{Loc NextButton}" Height="23" Name="nextButton" Width="75" Margin="1" IsDefault="True" Click="nextButton_Click"/>
117            <Button Content="{Loc AbortButton}" Height="23" Name="abortButton" Width="75" Margin="1" Click="abortButton_Click"/>
118        </StackPanel>
119    </Grid>
120</UserControl>
Note: See TracBrowser for help on using the repository browser.