Changeset 8670


Ignore:
Timestamp:
Feb 22, 2020, 7:39:29 PM (2 years ago)
Author:
Sven Rech
Message:

Lattice tutorial: Made all text components markable

Location:
trunk/CrypPlugins
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/LatticeCrypto/ViewModels/GGHViewModel.cs

    r5921 r8670  
    33using System.Windows.Controls;
    44using System.Windows.Documents;
     5using Cryptool.PluginBase.Miscellaneous;
    56using LatticeCrypto.Models;
    67using LatticeCrypto.Properties;
     
    253254                    for (int j = 0; j < Lattice.M; j++)
    254255                    {
    255                         TextBlock leftTextBlock = new TextBlock
     256                        TextBlock leftTextBlock = new SelectableTextBlock
    256257                        {
    257258                            Text = Util.FormatBigInt(Lattice.Vectors[i].values[j]),
     
    263264                        LeftGrid.Children.Add(leftTextBlock);
    264265
    265                         TextBlock rightTextBlock = new TextBlock
     266                        TextBlock rightTextBlock = new SelectableTextBlock
    266267                        {
    267268                            Text = Util.FormatBigInt(Lattice.ReducedVectors[i].values[j]),
  • trunk/CrypPlugins/LatticeCrypto/ViewModels/LWEViewModel.cs

    r5865 r8670  
    33using System.Windows.Controls;
    44using System.Windows.Documents;
     5using Cryptool.PluginBase.Miscellaneous;
    56using LatticeCrypto.Models;
    67using LatticeCrypto.Properties;
     
    166167                for (int j = 0; j < LWE.l; j++)
    167168                {
    168                     TextBlock textBlock = new TextBlock
     169                    TextBlock textBlock = new SelectableTextBlock
    169170                    {
    170171                        Text = LWE.S[i, j].ToString(),
     
    191192                for (int j = 0; j < LWE.n; j++)
    192193                {
    193                     TextBlock textBlock = new TextBlock
    194                                               {
     194                    TextBlock textBlock = new SelectableTextBlock
     195                    {
    195196                                                  Text = LWE.A[i, j].ToString(),
    196197                                                  Margin = new Thickness(10, 0, 10, 0),
     
    216217                for (int j = 0; j < LWE.l; j++)
    217218                {
    218                     TextBlock textBlock = new TextBlock
     219                    TextBlock textBlock = new SelectableTextBlock
    219220                    {
    220221                        Text = LWE.B[i, j].ToString(),
  • trunk/CrypPlugins/LatticeCrypto/ViewModels/SvpGaussViewModel.cs

    r5963 r8670  
    1515using LatticeCrypto.Views;
    1616using Microsoft.Win32;
     17using Cryptool.PluginBase.Miscellaneous;
    1718
    1819namespace LatticeCrypto.ViewModels
     
    765766                    currentStep -= intervalX;
    766767                    String text = Util.FormatBigInt(currentStep);
    767                     TextBlock textBlock = new TextBlock {Text = text.PadLeft(4)};
     768                    TextBlock textBlock = new SelectableTextBlock { Text = text.PadLeft(4)};
    768769                    Canvas.SetLeft(textBlock, x + PixelsPerPoint/3.0 - 20);
    769770                    Canvas.SetBottom(textBlock, zeroPoint.Y - 15);
     
    775776                    currentStep += intervalX;
    776777                    String text = Util.FormatBigInt(currentStep);
    777                     TextBlock textBlock = new TextBlock {Text = text.PadLeft(4)};
     778                    TextBlock textBlock = new SelectableTextBlock { Text = text.PadLeft(4)};
    778779                    Canvas.SetLeft(textBlock, x + PixelsPerPoint/3.0 - 20);
    779780                    Canvas.SetBottom(textBlock, zeroPoint.Y - 15);
     
    790791                    currentStep -= intervalY;
    791792                    String text = Util.FormatBigInt(currentStep);
    792                     TextBlock textBlock = new TextBlock {Text = text.PadLeft(4)};
     793                    TextBlock textBlock = new SelectableTextBlock { Text = text.PadLeft(4)};
    793794                    Canvas.SetBottom(textBlock, y - PixelsPerPoint/3.0);
    794795                    Canvas.SetLeft(textBlock, zeroPoint.X - 25);
     
    800801                    currentStep += intervalY;
    801802                    String text = Util.FormatBigInt(currentStep);
    802                     TextBlock textBlock = new TextBlock {Text = text.PadLeft(4)};
     803                    TextBlock textBlock = new SelectableTextBlock { Text = text.PadLeft(4)};
    803804                    Canvas.SetBottom(textBlock, y - PixelsPerPoint/3.0);
    804805                    Canvas.SetLeft(textBlock, zeroPoint.X - 25);
  • trunk/CrypPlugins/LatticeCrypto/Views/CvpView.xaml

    r8515 r8670  
    9090        <ScrollViewer Grid.Column="1" Grid.Row="1" Grid.RowSpan="3" VerticalScrollBarVisibility="Auto" Width="250">
    9191            <StackPanel>
    92                 <Label Content="{x:Static Properties:Languages.labelVisualizationForDim2}" FontWeight="Bold"/>
     92                <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelVisualizationForDim2}" FontWeight="Bold"/>
    9393               
    9494               
     
    9797                    <GroupBox.Header>
    9898                        <StackPanel Orientation="Horizontal">
    99                             <Label Content="{x:Static Properties:Languages.labelCodomain}" HorizontalAlignment="Center" Background="LightBlue" />
     99                            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelCodomain}" HorizontalAlignment="Center" Background="LightBlue" />
    100100                            <Image Name="btnHelpCodomain" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    101101                        </StackPanel>
     
    112112                            <RowDefinition Height="auto"/>
    113113                        </Grid.RowDefinitions>
    114                         <Label Grid.Column="0" Content="{x:Static Properties:Languages.labelFrom}"/>
     114                        <SelectableTextBlock Padding="5" Grid.Column="0" Text="{x:Static Properties:Languages.labelFrom}"/>
    115115                        <TextBox Grid.Row="0" Grid.Column="1" Name="textRangeStart" Text="-99" TextChanged="ValidateCodomain"/>
    116                         <Label Grid.Row="0" Grid.Column="2" Content="{x:Static Properties:Languages.labelTo}"/>
     116                        <SelectableTextBlock Padding="5" Grid.Row="0" Grid.Column="2" Text="{x:Static Properties:Languages.labelTo}"/>
    117117                        <TextBox Grid.Row="0" Grid.Column="3" Name="textRangeEnd" Text="99" TextChanged="ValidateCodomain"/>
    118                         <TextBlock Grid.Row="1" Grid.ColumnSpan="4" Grid.Column="0" Name="errorText" Visibility="Collapsed" TextWrapping="Wrap"/>
     118                        <SelectableTextBlock Grid.Row="1" Grid.ColumnSpan="4" Grid.Column="0" Name="errorText" Visibility="Collapsed" TextWrapping="Wrap"/>
    119119                    </Grid>
    120120                </GroupBox>
     
    123123                <GroupBox HorizontalAlignment="Stretch" Margin="0,20,0,0">
    124124                    <GroupBox.Header>
    125                         <Label Content="{x:Static Properties:Languages.labelReducedLatticeBasis}" HorizontalAlignment="Center" Background="#CC008000"/>
     125                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelReducedLatticeBasis}" HorizontalAlignment="Center" Background="#CC008000"/>
    126126                    </GroupBox.Header>
    127127                    <GroupBox.Content>
     
    144144                            </Grid>
    145145                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
    146                                 <Label Content="{x:Static Properties:Languages.labelSuccessiveMinima}" />
     146                                <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelSuccessiveMinima}" />
    147147                                <Image Name="btnHelpSuccessiveMinima" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    148148                            </StackPanel>
     
    166166                    <GroupBox.Header>
    167167                        <StackPanel Orientation="Horizontal">
    168                             <Label Content="{x:Static Properties:Languages.labelTargetPoint}" Background="DarkOrange"/>
     168                            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelTargetPoint}" Background="DarkOrange"/>
    169169                            <Image Name="btnTargetPoint" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    170170                        </StackPanel>
  • trunk/CrypPlugins/LatticeCrypto/Views/GGHView.xaml

    r6150 r8670  
    3636
    3737                    <StackPanel Orientation="Horizontal" >
    38                         <Label Content="{x:Static Properties:Languages.labelKeyLength}"/>
     38                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelKeyLength}"/>
    3939                        <TextBox Text="{Binding ElementName=scrollBar, Path=Value, Mode=TwoWay}" Width="25" VerticalAlignment="Center" Margin= "5,0,0,0"/>
    4040                        <ScrollBar Name="scrollBar" Maximum="10" Minimum="2" Value="{Binding Dim, Mode=TwoWay}" SmallChange="1" LargeChange="2" RenderTransformOrigin="0.5,0.5" Margin= "5,0,0,0">
     
    5353
    5454                    <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="1">
    55                         <Label Content="{x:Static Properties:Languages.labelParameterL}"/>
     55                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelParameterL}"/>
    5656                        <TextBox Text="{Binding ElementName=scrollBar2, Path=Value, Mode=TwoWay}" Width="25" VerticalAlignment="Center" Margin= "5,0,0,0"/>
    5757                        <ScrollBar Name="scrollBar2" Maximum="20" Minimum="1" Value="4" SmallChange="1" LargeChange="2" RenderTransformOrigin="0.5,0.5" Margin= "5,0,0,0">
     
    7777                    <GroupBox HorizontalAlignment="Center" VerticalAlignment="Center">
    7878                        <GroupBox.Header>
    79                             <Label Content="{x:Static Properties:Languages.labelPrivateKeyR}" Background="#CC008000" />
     79                            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPrivateKeyR}" Background="#CC008000" />
    8080                        </GroupBox.Header>
    8181                        <GroupBox.Content>
     
    9393                    <GroupBox Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center">
    9494                        <GroupBox.Header>
    95                             <Label Content="{x:Static Properties:Languages.labelPublicKeyB}" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#CCDC143C"/>
     95                            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPublicKeyB}" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#CCDC143C"/>
    9696                        </GroupBox.Header>
    9797                        <GroupBox.Content>
     
    115115                        <ColumnDefinition />
    116116                    </Grid.ColumnDefinitions>
    117                    
    118                     <Label Content="{x:Static Properties:Languages.labelErrorVector}" Grid.Row="0" Grid.Column="0"/>
     117
     118                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelErrorVector}" Grid.Row="0" Grid.Column="0"/>
    119119                    <TextBox Text="{Binding ErrorVector, Mode=OneWay}" IsReadOnly="True" Grid.Row="0" Grid.Column="1" TextWrapping="Wrap" />
    120120                    <Button Content="{x:Static Properties:Languages.buttonGenerateNewErrorVector}" Grid.Row="1" Grid.Column="0" Margin="0,10,0,0" Command="{Binding GenerateErrorVectorCommand}"/>
     
    134134
    135135                    <StackPanel Orientation="Horizontal" Margin="0,0,0,10">
    136                         <Label Content="{x:Static Properties:Languages.labelMode}"/>
     136                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelMode}"/>
    137137                        <ComboBox Name="cbModus" Margin="10,0,20,0">
    138138                            <ComboBoxItem Content="{x:Static Properties:Languages.buttonEncrypt}" IsSelected="True"/>
     
    142142                    </StackPanel>
    143143
    144                     <Label Content="{x:Static Properties:Languages.labelPlainText}" Grid.Row="1" Grid.Column="0" />
     144                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPlainText}" Grid.Row="1" Grid.Column="0" />
    145145                    <TextBox Name="message" Text="{Binding Message, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"   Grid.Row="2" Grid.Column="0" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" VerticalScrollBarVisibility="Auto"/>
    146146
    147                     <Label Content="{x:Static Properties:Languages.labelCiphertext}" Grid.Row="1" Grid.Column="1"/>
     147                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelCiphertext}" Grid.Row="1" Grid.Column="1"/>
    148148                    <TextBox Text="{Binding Cipher, Mode=TwoWay}" Grid.Row="2" Grid.Column="1" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"/>
    149149                </Grid>
  • trunk/CrypPlugins/LatticeCrypto/Views/LWEView.xaml

    r6150 r8670  
    3030
    3131                    <StackPanel Orientation="Horizontal" >
    32                         <Label Content="{x:Static Properties:Languages.labelKeyLength}"/>
     32                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelKeyLength}"/>
    3333                        <TextBox Text="{Binding ElementName=scrollBar, Path=Value, Mode=TwoWay}" Width="25" VerticalAlignment="Center" Margin= "5,0,0,0"/>
    3434                        <ScrollBar Name="scrollBar" Maximum="10" Minimum="6" Value="6" SmallChange="1" LargeChange="2" RenderTransformOrigin="0.5,0.5" Margin= "5,0,0,0">
     
    4747
    4848                    <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="1">
    49                         <Label Content="{x:Static Properties:Languages.labelModuloQ}"/>
     49                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelModuloQ}"/>
    5050                        <TextBox Text="{Binding ElementName=scrollBar2, Path=Value, Mode=TwoWay}" Width="25" VerticalAlignment="Center" Margin= "5,0,0,0"/>
    5151                        <ScrollBar Name="scrollBar2" Maximum="20" Minimum="3" Value="3" SmallChange="1" LargeChange="2" RenderTransformOrigin="0.5,0.5" Margin= "5,0,0,0">
     
    7171                    <GroupBox Margin="10,0" HorizontalAlignment="Center" VerticalAlignment="Center">
    7272                        <GroupBox.Header>
    73                             <Label Content="{x:Static Properties:Languages.labelPrivateKeyS}" Background="#CC008000" />
     73                            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPrivateKeyS}" Background="#CC008000" />
    7474                        </GroupBox.Header>
    7575                        <GroupBox.Content>
     
    8282                    <GroupBox Grid.Column="1" Margin="10,0" HorizontalAlignment="Center" VerticalAlignment="Center">
    8383                        <GroupBox.Header>
    84                             <Label Content="{x:Static Properties:Languages.labelPublicKeyA}" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#CCDC143C"/>
     84                            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPublicKeyA}" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#CCDC143C"/>
    8585                        </GroupBox.Header>
    8686                        <GroupBox.Content>
     
    9393                    <GroupBox Grid.Column="2" Margin="10,0" HorizontalAlignment="Center" VerticalAlignment="Center">
    9494                        <GroupBox.Header>
    95                             <Label Content="{x:Static Properties:Languages.labelPublicKeyB2}" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#CCDC143C"/>
     95                            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPublicKeyB2}" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#CCDC143C"/>
    9696                        </GroupBox.Header>
    9797                        <GroupBox.Content>
     
    114114                    </Grid.ColumnDefinitions>
    115115                    <Button Content="{x:Static Properties:Languages.buttonGenerateNewRandomVector}" Width="auto" Command="{Binding GenerateRandomVectorCommand}" Margin="0,10,0,10"/>
    116                     <Label Content="{x:Static Properties:Languages.labelRandomVectorR}" Grid.Row="1" Grid.Column="0"/>
     116                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelRandomVectorR}" Grid.Row="1" Grid.Column="0"/>
    117117                    <TextBox Text="{Binding RandomVectorR, Mode=OneWay}" IsReadOnly="True" Grid.Row="1" Grid.Column="1" TextWrapping="Wrap" />
    118                     <Label Content="{x:Static Properties:Languages.labelSubsetU}" Grid.Row="2" Grid.Column="0"/>
     118                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelSubsetU}" Grid.Row="2" Grid.Column="0"/>
    119119                    <TextBox Text="{Binding SubsetU, Mode=OneWay}" IsReadOnly="True" Grid.Row="2" Grid.Column="1" TextWrapping="Wrap" />
    120120                </Grid>
    121121
    122122                <StackPanel Orientation="Horizontal" Margin="0,10,0,10">
    123                     <Label Content="{x:Static Properties:Languages.labelMode}"/>
     123                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelMode}"/>
    124124                    <ComboBox Name="cbModus" Margin="10,0,20,0">
    125125                        <ComboBoxItem Content="{x:Static Properties:Languages.buttonEncrypt}" IsSelected="True"/>
     
    129129                </StackPanel>
    130130
    131                 <Label Content="{x:Static Properties:Languages.labelBitwiseEncryption}" FontWeight="Bold" />
     131                <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelBitwiseEncryption}" FontWeight="Bold" />
    132132
    133133                <Grid Margin="0,10,0,10">
     
    142142                    </Grid.ColumnDefinitions>
    143143
    144                     <Label Content="{x:Static Properties:Languages.labelPlainText}" Grid.Row="0"/>
     144                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPlainText}" Grid.Row="0"/>
    145145                    <ComboBox Text="{Binding Message, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  Grid.Row="0" Grid.Column="1" HorizontalAlignment="Stretch" FontSize="18">
    146146                        <ComboBoxItem Content="0" IsSelected="True" />
     
    148148                    </ComboBox>
    149149                    <Label Height="10" Grid.Row="1" Grid.Column="0" />
    150                     <Label Content="{x:Static Properties:Languages.labelCiphertext}" Grid.Row="2" Grid.Column="0"/>
     150                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelCiphertext}" Grid.Row="2" Grid.Column="0"/>
    151151                    <TextBox Text="{Binding Cipher, Mode=TwoWay}"  Grid.Row="2" Grid.Column="1" FontSize="18" />
    152152                </Grid>
  • trunk/CrypPlugins/LatticeCrypto/Views/LatticeCryptoMain.xaml

    r8504 r8670  
    2727            </Grid.RowDefinitions>
    2828            <DockPanel Grid.Row="0">
    29                 <Label Name="lblTitel" Margin="10,0,0,0" FontSize="17" HorizontalAlignment="Left" VerticalAlignment="Center">Label</Label>
     29                <SelectableTextBlock Padding="5" Name="lblTitel" Margin="10,0,0,0" FontSize="17" HorizontalAlignment="Left" VerticalAlignment="Center">Label</SelectableTextBlock>
    3030                <Image Cursor="Hand" Source="/LatticeCrypto;component/Utilities/Images/help32.gif" Width="24" Height="24" MouseLeftButtonDown="Image_MouseLeftButtonDown" HorizontalAlignment="Left" VerticalAlignment="Center"/>
    3131            </DockPanel>
  • trunk/CrypPlugins/LatticeCrypto/Views/LatticeCryptoMain.xaml.cs

    r6094 r8670  
    9898            {
    9999                case NavigationCommandType.Start:
    100                     lblTitel.Content = Languages.LatticeSettings;
     100                    lblTitel.Text = Languages.LatticeSettings;
    101101                    break;
    102102                case NavigationCommandType.Gauss:
    103                     lblTitel.Content = Languages.tabGaussAlgorithm;
     103                    lblTitel.Text = Languages.tabGaussAlgorithm;
    104104                    break;
    105105                case NavigationCommandType.LLL:
    106                     lblTitel.Content = Languages.tabLLLAlgorithm;
     106                    lblTitel.Text = Languages.tabLLLAlgorithm;
    107107                    break;
    108108                case NavigationCommandType.CVP:
    109                     lblTitel.Content = Languages.tabFindCVP;
     109                    lblTitel.Text = Languages.tabFindCVP;
    110110                    break;
    111111                case NavigationCommandType.MerkleHellman:
    112                     lblTitel.Content = Languages.tabAttackMerkleHellman;
     112                    lblTitel.Text = Languages.tabAttackMerkleHellman;
    113113                    break;
    114114                case NavigationCommandType.RSA:
    115                     lblTitel.Content = Languages.tabAttackRSA;
     115                    lblTitel.Text = Languages.tabAttackRSA;
    116116                    break;
    117117                case NavigationCommandType.GGH:
    118                     lblTitel.Content = Languages.tabGGH;
     118                    lblTitel.Text = Languages.tabGGH;
    119119                    break;
    120120                case NavigationCommandType.LWE:
    121                     lblTitel.Content = Languages.tabLWE;
     121                    lblTitel.Text = Languages.tabLWE;
    122122                    break;
    123123            }
  • trunk/CrypPlugins/LatticeCrypto/Views/LatticeManualInputView.xaml

    r5895 r8670  
    3030        </StackPanel>
    3131        <Grid Name="latticeGrid" HorizontalAlignment="Center" VerticalAlignment="Stretch" Margin="10,0"/>
    32         <TextBlock Name="errorText" Text="{x:Static Properties:Languages.errorSameLattice}" Width="250" Height="auto" TextWrapping="Wrap" Margin="10,10"/>
     32        <SelectableTextBlock Name="errorText" Text="{x:Static Properties:Languages.errorSameLattice}" Width="250" Height="auto" TextWrapping="Wrap" Margin="10,10"/>
    3333        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
    34             <Label Content="{x:Static Properties:Languages.labelRowVectors}" />
     34            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelRowVectors}" />
    3535            <CheckBox Name="CBRowVectors" VerticalAlignment="Center" Checked="CBRowVectors_Checked" Unchecked="CBRowVectors_Unchecked" />
    3636        </StackPanel>
  • trunk/CrypPlugins/LatticeCrypto/Views/LatticeSettingsTab.xaml

    r5865 r8670  
    3333                    <RowDefinition Height="auto"/>
    3434                </Grid.RowDefinitions>
    35                 <Label Content="{x:Static Properties:SettingsLanguages.labelMaxCountLatticePoints}" />
     35                <SelectableTextBlock Padding="5" Text="{x:Static Properties:SettingsLanguages.labelMaxCountLatticePoints}" />
    3636                <TextBox Grid.Row="0" Grid.Column="1" Style="{StaticResource textBoxInError}">
    3737                    <TextBox.Text>
     
    4343                    </TextBox.Text>
    4444                </TextBox>
    45                 <Label Grid.Row="1" Grid.Column="0" Content="{x:Static Properties:SettingsLanguages.labelMaxCountPolygons}" />
     45                <SelectableTextBlock Padding="5" Grid.Row="1" Grid.Column="0" Text="{x:Static Properties:SettingsLanguages.labelMaxCountPolygons}" />
    4646                <TextBox Grid.Row="1" Grid.Column="1" Style="{StaticResource textBoxInError}">
    4747                    <TextBox.Text>
     
    5353                    </TextBox.Text>
    5454                </TextBox>
    55                 <Label Grid.Row="2" Grid.Column="0" Content="{x:Static Properties:SettingsLanguages.labelUseSameScaleForBothAxes}" />
     55                <SelectableTextBlock Padding="5" Grid.Row="2" Grid.Column="0" Text="{x:Static Properties:SettingsLanguages.labelUseSameScaleForBothAxes}" />
    5656                <CheckBox Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" IsChecked="{Binding Source={x:Static Properties:Settings.Default}, Path=useSameScalingForBothAxes, Mode=TwoWay}" />
    57                 <Label Grid.Row="3" Grid.Column="0" Content="{x:Static Properties:SettingsLanguages.labelShowHermiteCircle}" />
     57                <SelectableTextBlock Padding="5" Grid.Row="3" Grid.Column="0" Text="{x:Static Properties:SettingsLanguages.labelShowHermiteCircle}" />
    5858                <CheckBox Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" IsChecked="{Binding Source={x:Static Properties:Settings.Default}, Path=showHermiteCircle, Mode=TwoWay}" />
    59                 <Label Grid.Row="4" Grid.Column="0" Content="{x:Static Properties:SettingsLanguages.labelSpherePacking}" />
     59                <SelectableTextBlock Padding="5" Grid.Row="4" Grid.Column="0" Text="{x:Static Properties:SettingsLanguages.labelSpherePacking}" />
    6060                <CheckBox Grid.Row="4" Grid.Column="1" VerticalAlignment="Center" IsChecked="{Binding Source={x:Static Properties:Settings.Default}, Path=showSpherePacking, Mode=TwoWay}" />
    61                 <Label Grid.Row="5" Grid.Column="0" Content="{x:Static Properties:SettingsLanguages.labelForceAcuteAngle}" />
     61                <SelectableTextBlock Padding="5" Grid.Row="5" Grid.Column="0" Text="{x:Static Properties:SettingsLanguages.labelForceAcuteAngle}" />
    6262                <CheckBox Grid.Row="5" Grid.Column="1" VerticalAlignment="Center" IsChecked="{Binding Source={x:Static Properties:Settings.Default}, Path=forceAcuteAngle, Mode=TwoWay}" />
    63                 <Label Grid.Row="6" Grid.Column="0" Content="{x:Static Properties:SettingsLanguages.labelMaxDecimalPlaces}" />
     63                <SelectableTextBlock Padding="5" Grid.Row="6" Grid.Column="0" Text="{x:Static Properties:SettingsLanguages.labelMaxDecimalPlaces}" />
    6464                <TextBox Grid.Row="6" Grid.Column="1" Style="{StaticResource textBoxInError}">
    6565                    <TextBox.Text>
     
    8585                    <RowDefinition Height="auto"/>
    8686                </Grid.RowDefinitions>
    87                 <Label Content="{x:Static Properties:SettingsLanguages.labelLatticeTags}" />
     87                <SelectableTextBlock Padding="5" Text="{x:Static Properties:SettingsLanguages.labelLatticeTags}" />
    8888                <ComboBox Grid.Row="0" Grid.Column="1" SelectionChanged="ComboBox_SelectionChanged" SelectedIndex="{Binding Source={x:Static Properties:Settings.Default}, Path=latticeTags, Mode=TwoWay}">
    8989                    <ComboBoxItem Content="{x:Static Properties:SettingsLanguages.squareBrackets}"/>
     
    9292                    <ComboBoxItem Content="{x:Static Properties:SettingsLanguages.noBrackets}"/>
    9393                </ComboBox>
    94                 <Label Grid.Row="1" Grid.Column="0" Content="{x:Static Properties:SettingsLanguages.labelVectorTags}" />
     94                <SelectableTextBlock Padding="5" Grid.Row="1" Grid.Column="0" Text="{x:Static Properties:SettingsLanguages.labelVectorTags}" />
    9595                <ComboBox Grid.Row="1" Grid.Column="1" SelectionChanged="ComboBox_SelectionChanged_1" SelectedIndex="{Binding Source={x:Static Properties:Settings.Default}, Path=vectorTags, Mode=TwoWay}">
    9696                    <ComboBoxItem Content="{x:Static Properties:SettingsLanguages.squareBrackets}"/>
     
    9999                    <!--<ComboBoxItem Content="{x:Static Properties:SettingsLanguages.noBrackets}"/>-->
    100100                </ComboBox>
    101                 <Label Grid.Row="2" Grid.Column="0" Content="{x:Static Properties:SettingsLanguages.labelVectorSeparator}" />
     101                <SelectableTextBlock Padding="5" Grid.Row="2" Grid.Column="0" Text="{x:Static Properties:SettingsLanguages.labelVectorSeparator}" />
    102102                <ComboBox Grid.Row="2" Grid.Column="1" SelectionChanged="ComboBox_SelectionChanged_2" SelectedIndex="{Binding Source={x:Static Properties:Settings.Default}, Path=vectorSeparator, Mode=TwoWay}">
    103103                    <ComboBoxItem Content="{x:Static Properties:SettingsLanguages.comma}"/>
     
    106106                    <ComboBoxItem Content="{x:Static Properties:SettingsLanguages.tab}"/>
    107107                </ComboBox>
    108                 <Label Grid.Row="3" Grid.Column="0"
    109                        Content="{x:Static Properties:SettingsLanguages.labelCoordinatesSeparator}" />
     108                <SelectableTextBlock Padding="5" Grid.Row="3" Grid.Column="0"
     109                       Text="{x:Static Properties:SettingsLanguages.labelCoordinatesSeparator}" />
    110110                <ComboBox Grid.Row="3" Grid.Column="1" SelectionChanged="ComboBox_SelectionChanged_3" SelectedIndex="{Binding Source={x:Static Properties:Settings.Default}, Path=coordinatesSeparator, Mode=TwoWay}">
    111111                    <ComboBoxItem Content="{x:Static Properties:SettingsLanguages.comma}"/>
  • trunk/CrypPlugins/LatticeCrypto/Views/MerkleHellmanManualInputView.xaml

    r5895 r8670  
    1717            </Grid.ColumnDefinitions>
    1818
    19             <Label Content="{x:Static Properties:Languages.labelPrivateKey}" Grid.Row="0" Grid.Column="0"/>
     19            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPrivateKey}" Grid.Row="0" Grid.Column="0"/>
    2020            <TextBox Name="privateKey" Grid.Row="0" Grid.Column="1" TextWrapping="Wrap" />
    21             <Label Content="{x:Static Properties:Languages.labelModulus}" Grid.Row="1" Grid.Column="0"/>
     21            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelModulus}" Grid.Row="1" Grid.Column="0"/>
    2222            <TextBox Name="mod" Grid.Row="1" Grid.Column="1" />
    23             <Label Content="{x:Static Properties:Languages.labelMultiplier}" Grid.Row="2" Grid.Column="0"/>
     23            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelMultiplier}" Grid.Row="2" Grid.Column="0"/>
    2424            <TextBox Name="r" Grid.Row="2" Grid.Column="1" />
    2525        </Grid>
    26         <TextBlock Name="errorText" Text="{x:Static Properties:Languages.errorSameCryptosystem}" Width="250" Height="50" TextWrapping="Wrap" Margin="10,10"/>
     26        <SelectableTextBlock Name="errorText" Text="{x:Static Properties:Languages.errorSameCryptosystem}" Width="250" Height="50" TextWrapping="Wrap" Margin="10,10"/>
    2727       
    2828        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="15,10,15,15">
  • trunk/CrypPlugins/LatticeCrypto/Views/MerkleHellmanView.xaml

    r6150 r8670  
    3434
    3535                    <StackPanel Orientation="Horizontal" >
    36                         <Label Content="{x:Static Properties:Languages.labelKeyLength}"/>
     36                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelKeyLength}"/>
    3737                        <TextBox Text="{Binding ElementName=scrollBar, Path=Value, Mode=TwoWay}" Width="25" VerticalAlignment="Center" Margin= "5,0,0,0"/>
    3838                        <ScrollBar Name="scrollBar" Maximum="15" Minimum="2" Value="5" SmallChange="1" LargeChange="2" RenderTransformOrigin="0.5,0.5" Margin= "5,0,0,0">
     
    6767                    </Grid.ColumnDefinitions>
    6868
    69                     <Label Content="{x:Static Properties:Languages.labelPrivateKey}" Grid.Row="0" Grid.Column="0"/>
     69                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPrivateKey}" Grid.Row="0" Grid.Column="0"/>
    7070                    <TextBox Text="{Binding PrivateKey, Mode=OneWay}" IsReadOnly="True" Grid.Row="0" Grid.Column="1" TextWrapping="Wrap" />
    71                     <Label Content="{x:Static Properties:Languages.labelPublicKey}" Grid.Row="1" Grid.Column="0"/>
     71                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPublicKey}" Grid.Row="1" Grid.Column="0"/>
    7272                    <TextBox Text="{Binding PublicKey, Mode=OneWay}" IsReadOnly="True" Grid.Row="1" Grid.Column="1" TextWrapping="Wrap" />
    73                     <Label Content="{x:Static Properties:Languages.labelModulus}" Grid.Row="2" Grid.Column="0"/>
     73                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelModulus}" Grid.Row="2" Grid.Column="0"/>
    7474                    <TextBox Text="{Binding Mod, Mode=OneWay}" IsReadOnly="True" Grid.Row="2" Grid.Column="1"/>
    75                     <Label Content="{x:Static Properties:Languages.labelMultiplier}" Grid.Row="3" Grid.Column="0"/>
     75                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelMultiplier}" Grid.Row="3" Grid.Column="0"/>
    7676                    <TextBox Text="{Binding R, Mode=OneWay}" IsReadOnly="True" Grid.Row="3" Grid.Column="1"/>
    77                     <Label Content="{x:Static Properties:Languages.labelMultiplierInverse}" Grid.Row="4" Grid.Column="0"/>
     77                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelMultiplierInverse}" Grid.Row="4" Grid.Column="0"/>
    7878                    <TextBox Text="{Binding RI, Mode=OneWay}" IsReadOnly="True" Grid.Row="4" Grid.Column="1"/>
    7979                </Grid>
     
    9191
    9292                    <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,10">
    93                         <Label Content="{x:Static Properties:Languages.labelMode}"/>
     93                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelMode}"/>
    9494                        <ComboBox Name="cbModus" Margin="10,0,20,0">
    9595                            <ComboBoxItem Content="{x:Static Properties:Languages.buttonEncrypt}" IsSelected="True"/>
     
    100100                    </StackPanel>
    101101
    102                     <Label Content="{x:Static Properties:Languages.labelPlainText}" Grid.Row="1" Grid.Column="0" />
     102                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPlainText}" Grid.Row="1" Grid.Column="0" />
    103103                    <TextBox Name="message" Text="{Binding Message, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Row="2" Grid.Column="0" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" VerticalScrollBarVisibility="Auto"/>
    104                    
    105                     <Label Content="{x:Static Properties:Languages.labelCiphertext}" Grid.Row="1" Grid.Column="1"/>
     104
     105                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelCiphertext}" Grid.Row="1" Grid.Column="1"/>
    106106                    <TextBox Text="{Binding Cipher, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Row="2" Grid.Column="1" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"/>
    107107                   
  • trunk/CrypPlugins/LatticeCrypto/Views/Navigation.xaml

    r8501 r8670  
    55    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" CanContentScroll="True" Background="Transparent">
    66        <DockPanel>
    7             <TextBlock DockPanel.Dock="Top" Text="{x:Static Properties:Languages.content}" FontWeight="Bold" FontSize="14" Margin="8,0,0,0" />
     7            <SelectableTextBlock DockPanel.Dock="Top" Text="{x:Static Properties:Languages.content}" FontWeight="Bold" FontSize="14" Margin="8,0,0,0" />
    88            <Border Margin="15">
    99                <TreeView BorderThickness="0" FontSize="15" Background="Transparent">
  • trunk/CrypPlugins/LatticeCrypto/Views/RSAView.xaml

    r6150 r8670  
    3434
    3535                    <StackPanel Orientation="Horizontal">
    36                         <Label Content="{x:Static Properties:Languages.labelKeyLength}"/>
     36                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelKeyLength}"/>
    3737                        <TextBox Text="{Binding ElementName=scrollBar, Path=Value, Mode=TwoWay}" Width="36" VerticalAlignment="Center" Margin= "5,0,0,0"/>
    3838                        <ScrollBar Name="scrollBar" Maximum="2048" Minimum="11" Value="512" SmallChange="1" LargeChange="2" RenderTransformOrigin="0.5,0.5" Margin= "5,0,0,0">
     
    6464                    </Grid.ColumnDefinitions>
    6565
    66                     <Label Content="{x:Static Properties:Languages.labelPrimeP}" Grid.Row="0" Grid.Column="0"/>
     66                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPrimeP}" Grid.Row="0" Grid.Column="0"/>
    6767                    <TextBox Text="{Binding PrimP, Mode=OneWay}" IsReadOnly="True" Grid.Row="0" Grid.Column="1" TextWrapping="Wrap" />
    68                     <Label Content="{x:Static Properties:Languages.labelPrimeQ}" Grid.Row="1" Grid.Column="0"/>
     68                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPrimeQ}" Grid.Row="1" Grid.Column="0"/>
    6969                    <TextBox Text="{Binding PrimQ, Mode=OneWay}" IsReadOnly="True" Grid.Row="1" Grid.Column="1" TextWrapping="Wrap" />
    70                     <Label Content="{x:Static Properties:Languages.labelModulusN}" Grid.Row="2" Grid.Column="0"/>
     70                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelModulusN}" Grid.Row="2" Grid.Column="0"/>
    7171                    <TextBox Text="{Binding ModulusN, Mode=OneWay}" IsReadOnly="True" Grid.Row="2" Grid.Column="1" TextWrapping="Wrap" />
    72                     <Label Content="{x:Static Properties:Languages.labelPrivateExponentD}" Grid.Row="3" Grid.Column="0"/>
     72                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPrivateExponentD}" Grid.Row="3" Grid.Column="0"/>
    7373                    <TextBox Text="{Binding ExpD, Mode=OneWay}" IsReadOnly="True" Grid.Row="3" Grid.Column="1" TextWrapping="Wrap" />
    74                     <Label Content="{x:Static Properties:Languages.labelPublicExponentE}" Grid.Row="4" Grid.Column="0"/>
     74                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPublicExponentE}" Grid.Row="4" Grid.Column="0"/>
    7575                    <TextBox Text="{Binding ExpE, Mode=OneWay}" IsReadOnly="True" Grid.Row="4" Grid.Column="1"/>
    7676                </Grid>
     
    9191
    9292                    <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,10">
    93                         <Label Content="{x:Static Properties:Languages.labelMode}"/>
     93                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelMode}"/>
    9494                        <ComboBox Name="cbModus" Margin="10,0,20,0">
    9595                            <ComboBoxItem Content="{x:Static Properties:Languages.buttonEncrypt}" IsSelected="True"/>
     
    100100                    </StackPanel>
    101101
    102                     <Label Content="{x:Static Properties:Languages.labelPlainText}" Grid.Row="1" Grid.Column="0" />
     102                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelPlainText}" Grid.Row="1" Grid.Column="0" />
    103103                    <TextBox Name="message" Text="{Binding Message, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Row="2" Grid.Column="0" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" IsUndoEnabled="True" VerticalScrollBarVisibility="Auto" SelectionChanged="message_SelectionChanged" TextChanged="message_TextChanged" KeyDown="message_KeyDown" />
    104104                   
    105105                    <Button Name="buttonMarkAsUnknown" Content="{x:Static Properties:Languages.buttonMarkAsUnknown}" Grid.Row="3" Grid.Column="0" Click="ButtonMarkAsUnknown" HorizontalAlignment="Center" IsEnabled="False"/>
    106                    
    107                     <Label Content="{x:Static Properties:Languages.labelKnownPlainText}" Grid.Row="1" Grid.Column="1"/>
     106
     107                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelKnownPlainText}" Grid.Row="1" Grid.Column="1"/>
    108108                    <TextBox Text="{Binding KnownMessage, Mode=OneWay}" Grid.Row="2" Grid.Column="1" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" IsReadOnly="True" VerticalScrollBarVisibility="Auto" Margin="0,0,10,0"/>
    109                     <Label Content="{x:Static Properties:Languages.labelResultUnknownPlainText}" Grid.Row="4" Grid.Column="1"/>
     109                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelResultUnknownPlainText}" Grid.Row="4" Grid.Column="1"/>
    110110                    <TextBox Text="{Binding UnknownMessageResult, Mode=OneWay}" Grid.Row="5" Grid.Column="1" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" IsReadOnly="True" VerticalScrollBarVisibility="Auto" Margin="0,0,10,0"/>
    111                     <Label Content="{x:Static Properties:Languages.labelCiphertext}" Grid.Row="4" Grid.Column="0"/>
     111                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelCiphertext}" Grid.Row="4" Grid.Column="0"/>
    112112                    <TextBox Text="{Binding Cipher, Mode=TwoWay}" Grid.Row="5" Grid.Column="0" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" Margin="0,0,10,0"/>
    113113                </Grid>
  • trunk/CrypPlugins/LatticeCrypto/Views/SvpGaussView.xaml

    r8515 r8670  
    9191        <ScrollViewer Grid.Row="1" Grid.Column="1" Grid.RowSpan="3" VerticalScrollBarVisibility="Auto" Width="290">
    9292            <StackPanel >
    93                 <Label Content="{x:Static Properties:Languages.labelVisualizationForDim2}" FontWeight="Bold"/>
     93                <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelVisualizationForDim2}" FontWeight="Bold"/>
    9494               <Button Name="buttonGenerate" Content="{x:Static Properties:Languages.buttonGenerateNewLattice}" Margin="0,10,0,0"  Click="Button_Click" HorizontalAlignment="Center"/>
    9595                <GroupBox HorizontalAlignment="Stretch" Margin="0,20,0,0">
    9696                    <GroupBox.Header>
    9797                        <StackPanel Orientation="Horizontal">
    98                             <Label Content="{x:Static Properties:Languages.labelCodomain}" HorizontalAlignment="Center" Background="LightBlue" />
     98                            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelCodomain}" HorizontalAlignment="Center" Background="LightBlue" />
    9999                            <Image Name="btnHelpCodomain" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    100100                        </StackPanel>
     
    111111                            <RowDefinition Height="auto"/>
    112112                        </Grid.RowDefinitions>
    113                         <Label Grid.Column="0" Content="{x:Static Properties:Languages.labelFrom}"/>
     113                        <SelectableTextBlock Padding="5" Grid.Column="0" Text="{x:Static Properties:Languages.labelFrom}"/>
    114114                        <TextBox Grid.Row="0" Grid.Column="1" Name="textRangeStart" Text="-99" TextChanged="ValidateCodomain"/>
    115                         <Label Grid.Row="0" Grid.Column="2" Content="{x:Static Properties:Languages.labelTo}"/>
     115                        <SelectableTextBlock Padding="5" Grid.Row="0" Grid.Column="2" Text="{x:Static Properties:Languages.labelTo}"/>
    116116                        <TextBox Grid.Row="0" Grid.Column="3" Name="textRangeEnd" Text="99" TextChanged="ValidateCodomain"/>
    117                         <TextBlock Grid.Row="1" Grid.ColumnSpan="4" Grid.Column="0" Name="errorText" Visibility="Collapsed" TextWrapping="Wrap"/>
     117                        <SelectableTextBlock Grid.Row="1" Grid.ColumnSpan="4" Grid.Column="0" Name="errorText" Visibility="Collapsed" TextWrapping="Wrap"/>
    118118                    </Grid>
    119119                </GroupBox>
     
    121121                <GroupBox HorizontalAlignment="Stretch" Margin="0,20,0,0">
    122122                    <GroupBox.Header>
    123                         <Label Content="{x:Static Properties:Languages.labelLatticeBasis}" HorizontalAlignment="Center" Background="#CCDC143C" />
     123                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelLatticeBasis}" HorizontalAlignment="Center" Background="#CCDC143C" />
    124124                    </GroupBox.Header>
    125125                    <GroupBox.Content>
     
    142142                            </Grid>
    143143                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
    144                                 <Label Content="{x:Static Properties:Languages.labelLengthBasisVectors}"/>
     144                                <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelLengthBasisVectors}"/>
    145145                                <Image Name="btnHelpVectorLength" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    146146                            </StackPanel>
     
    158158                            </Grid>
    159159                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
    160                                 <Label Content="{x:Static Properties:Languages.labelAngleBasisVectors}" />
     160                                <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelAngleBasisVectors}" />
    161161                                <Image Name="btnHelpAngleVectors" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    162162                            </StackPanel>
    163163                            <TextBox MinWidth="60" Text="{Binding Lattice.AngleBasisVectors, Mode=OneWay, StringFormat={}{0:f}}" IsReadOnly="True" HorizontalAlignment="Center"/>
    164164                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
    165                                 <Label Content="{x:Static Properties:Languages.labelDeterminant}" />
     165                                <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelDeterminant}" />
    166166                                <Image Name="btnHelpDeterminantLattice" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    167167                            </StackPanel>
     
    173173                <GroupBox HorizontalAlignment="Stretch" Margin="0,20,0,0">
    174174                    <GroupBox.Header>
    175                         <Label Content="{x:Static Properties:Languages.labelReducedLatticeBasis}" HorizontalAlignment="Center" Background="#CC008000"/>
     175                        <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelReducedLatticeBasis}" HorizontalAlignment="Center" Background="#CC008000"/>
    176176                    </GroupBox.Header>
    177177                    <GroupBox.Content>
     
    194194                            </Grid>
    195195                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
    196                                 <Label Content="{x:Static Properties:Languages.labelSuccessiveMinima}" />
     196                                <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelSuccessiveMinima}" />
    197197                                <Image Name="btnHelpSuccessiveMinima" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    198198                            </StackPanel>
     
    211211                            </Grid>
    212212                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
    213                                 <Label Content="{x:Static Properties:Languages.labelAngleReducedVectors}"/>
     213                                <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelAngleReducedVectors}"/>
    214214                                <Image Name="btnHelpAngleReducedVectors" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    215215                            </StackPanel>
  • trunk/CrypPlugins/LatticeCrypto/Views/SvpLLLView.xaml

    r8515 r8670  
    9393            <GroupBox HorizontalAlignment="Center" VerticalAlignment="Center">
    9494                <GroupBox.Header>
    95                     <Label Content="{x:Static Properties:Languages.labelLatticeBasis}" Background="#CCDC143C" />
     95                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelLatticeBasis}" Background="#CCDC143C" />
    9696                </GroupBox.Header>
    9797                <GroupBox.Content>
     
    106106            <GroupBox Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center">
    107107                <GroupBox.Header>
    108                     <Label Content="{x:Static Properties:Languages.labelReducedLatticeBasis}" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#CC008000"/>
     108                    <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelReducedLatticeBasis}" HorizontalAlignment="Center" VerticalAlignment="Center" Background="#CC008000"/>
    109109                </GroupBox.Header>
    110110                <GroupBox.Content>
     
    121121               
    122122                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
    123                     <Label Content="Dimension: " />
     123                    <SelectableTextBlock Padding="5" Text="Dimension: " />
    124124                    <Image Name="btnHelpDimension" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    125125                    <TextBox Name="textDim" Text="{Binding ElementName=scrollBarDim, Path=Value, Mode=TwoWay}" Width="25" TextChanged="TextBox_TextChanged" />
     
    136136                </StackPanel>
    137137                <StackPanel Orientation="Horizontal" Margin="0,10,0,0" HorizontalAlignment="Center">
    138                     <Label Content="m:"/>
     138                    <SelectableTextBlock Padding="5" Text="m:"/>
    139139                    <TextBox Name="textM" Text="{Binding ElementName=scrollBarM, Path=Value, Mode=TwoWay}" Width="25" IsEnabled="False"/>
    140140                    <ScrollBar Name="scrollBarM" Width="15"  Maximum="25" Minimum="2" Value="2" SmallChange="1" RenderTransformOrigin="0.5,0.5" IsEnabled="False">
     
    148148                        </ScrollBar.RenderTransform>
    149149                    </ScrollBar>
    150                     <Label Content="n:" Margin="10,0,0,0"/>
     150                    <SelectableTextBlock Padding="5" Text="n:" Margin="10,0,0,0"/>
    151151                    <TextBox Name="textN" Text="{Binding ElementName=scrollBarN, Path=Value, Mode=TwoWay}" Width="25" IsEnabled="False"/>
    152152                    <ScrollBar Name="scrollBarN" Width="15"  Maximum="25" Minimum="2" Value="2" SmallChange="1" RenderTransformOrigin="0.5,0.5" IsEnabled="False">
     
    167167                    <GroupBox.Header>
    168168                        <StackPanel Orientation="Horizontal">
    169                             <Label Content="{x:Static Properties:Languages.labelCodomain}" HorizontalAlignment="Center" Background="LightBlue" />
     169                            <SelectableTextBlock Padding="5" Text="{x:Static Properties:Languages.labelCodomain}" HorizontalAlignment="Center" Background="LightBlue" />
    170170                            <Image Name="btnHelpCodomain" Cursor="Hand"  Width="16" Height="16" HorizontalAlignment="Right" MouseLeftButtonDown="Button_Help_MouseLeftButtonDown" Source="/LatticeCrypto;component/Utilities/Images/help.png" />
    171171                        </StackPanel>
     
    182182                            <RowDefinition Height="auto"/>
    183183                        </Grid.RowDefinitions>
    184                         <Label Grid.Column="0" Content="{x:Static Properties:Languages.labelFrom}"/>
     184                        <SelectableTextBlock Padding="5" Grid.Column="0" Text="{x:Static Properties:Languages.labelFrom}"/>
    185185                        <TextBox Grid.Row="0" Grid.Column="1" Name="textRangeStart" Text="-99" TextChanged="ValidateCodomain"/>
    186                         <Label Grid.Row="0" Grid.Column="2" Content="{x:Static Properties:Languages.labelTo}"/>
     186                        <SelectableTextBlock Padding="5" Grid.Row="0" Grid.Column="2" Text="{x:Static Properties:Languages.labelTo}"/>
    187187                        <TextBox Grid.Row="0" Grid.Column="3" Name="textRangeEnd" Text="99" TextChanged="ValidateCodomain"/>
    188                         <TextBlock Grid.Row="1" Grid.ColumnSpan="4" Grid.Column="0" Name="errorText" Visibility="Collapsed" TextWrapping="Wrap"/>
     188                        <SelectableTextBlock Grid.Row="1" Grid.ColumnSpan="4" Grid.Column="0" Name="errorText" Visibility="Collapsed" TextWrapping="Wrap"/>
    189189                    </Grid>
    190190                </GroupBox>
  • trunk/CrypPlugins/LatticeCrypto/Views/SvpLLLView.xaml.cs

    r5856 r8670  
    55using System.Windows.Controls;
    66using System.Windows.Input;
     7using Cryptool.PluginBase.Miscellaneous;
    78using LatticeCrypto.Properties;
    89using LatticeCrypto.Utilities;
     
    134135                    for (int j = 0; j < rows; j++)
    135136                    {
    136                         TextBlock leftTextBlock = new TextBlock
     137                        TextBlock leftTextBlock = new SelectableTextBlock
    137138                        {
    138139                            Text = Util.FormatBigInt(viewModel.Lattice.Vectors[!viewModel.Lattice.UseRowVectors ? i : j].values[!viewModel.Lattice.UseRowVectors ? j : i]),
     
    144145                        leftGrid.Children.Add(leftTextBlock);
    145146
    146                         TextBlock rightTextBlock = new TextBlock
     147                        TextBlock rightTextBlock = new SelectableTextBlock
    147148                        {
    148149                            Text = Util.FormatBigInt(viewModel.Lattice.ReducedVectors[!viewModel.Lattice.UseRowVectors ? i : j].values[!viewModel.Lattice.UseRowVectors ? j : i]),
  • trunk/CrypPlugins/LatticeCrypto/WpfResources/Shared.xaml

    r8501 r8670  
    11<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     2    xmlns:System="clr-namespace:System;assembly=mscorlib"
    23    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    34    <ResourceDictionary.MergedDictionaries>
     
    4041                        <Border Name="Header" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2" Grid.Column="1">
    4142                            <Label FontWeight="Bold">
    42                                 <ContentPresenter ContentSource="Header" RecognizesAccessKey="true" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
     43                                <ContentPresenter ContentSource="Header" RecognizesAccessKey="true" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
     44                                    <ContentPresenter.Resources>
     45                                        <DataTemplate DataType="{x:Type System:String}">
     46                                            <SelectableTextBlock Text="{Binding}" />
     47                                        </DataTemplate>
     48                                    </ContentPresenter.Resources>
     49                                </ContentPresenter>
    4350                            </Label>
    4451                        </Border>
  • trunk/CrypPlugins/PKCS1/WpfResources/Shared.xaml

    r8667 r8670  
    4343                            <Label FontWeight="Bold">
    4444                                <ContentPresenter ContentSource="Header" RecognizesAccessKey="true" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
    45                                     <ContentPresenter.ContentTemplate>
     45                                    <ContentPresenter.Resources>
    4646                                        <DataTemplate DataType="{x:Type System:String}">
    4747                                            <SelectableTextBlock Text="{Binding}" />
    4848                                        </DataTemplate>
    49                                     </ContentPresenter.ContentTemplate>
     49                                    </ContentPresenter.Resources>
    5050                                </ContentPresenter>
    5151                            </Label>
  • trunk/CrypPlugins/Primes/Primes/WpfResources/Shared.xaml

    r8666 r8670  
    4444                            <Label FontWeight="Bold">
    4545                                <ContentPresenter ContentSource="Header" RecognizesAccessKey="true" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
    46                                     <ContentPresenter.ContentTemplate>
     46                                    <ContentPresenter.Resources>
    4747                                        <DataTemplate DataType="{x:Type System:String}">
    4848                                            <SelectableTextBlock Text="{Binding}" />
    4949                                        </DataTemplate>
    50                                     </ContentPresenter.ContentTemplate>
     50                                    </ContentPresenter.Resources>
    5151                                </ContentPresenter>
    5252                            </Label>
Note: See TracChangeset for help on using the changeset viewer.