Changeset 8648


Ignore:
Timestamp:
Feb 20, 2020, 8:08:06 PM (2 years ago)
Author:
Sven Rech
Message:

Primes tutorial: Make most text labels markable (and thus copyable).

Location:
trunk/CrypPlugins/Primes/Primes
Files:
1 added
19 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Primes/Primes/Primes.csproj

    r8484 r8648  
    210210    </Compile>
    211211    <Compile Include="WpfControls\Components\ResettableTabItem.cs" />
     212    <Compile Include="WpfControls\Components\SelectableTextBlock.cs" />
    212213    <Compile Include="WpfControls\NumberTheory\Goldbach\GoldbachControl.xaml.cs">
    213214      <DependentUpon>GoldbachControl.xaml</DependentUpon>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Components/InputRangeControl.xaml

    r8488 r8648  
    33    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    44    xmlns:lang="clr-namespace:Primes.Resources.lang.WpfControls.Components"
     5    xmlns:comps="clr-namespace:Primes.WpfControls.Components"
    56    HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    67
     
    1718                        <Label Name="lblHorFreeTo" Content="{x:Static lang:Components.inputrange_to}"></Label>
    1819                        <TextBox Name="tbHorFreeTo" Width="100" HorizontalAlignment="Left" Tag="FreeTo" KeyUp="tb_KeyDown" GotFocus="tb_GotFocus" />
    19                         <TextBlock Name="lblInfoHorFree" TextWrapping="Wrap" Margin="5,0,0,0" />
     20                        <comps:SelectableTextBlock x:Name="lblInfoHorFree" TextWrapping="Wrap" Margin="5,0,0,0" />
    2021                        <Image VerticalAlignment="Top" Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpHorFree" MouseLeftButtonDown="Help_Click" Visibility="Hidden" />
    2122                    </DockPanel>
     
    4041                        <Label>+</Label>
    4142                        <TextBox Name="tbHorCalcToSum" Width="30" HorizontalAlignment="Left" Tag="CalcToSum" KeyUp="tb_KeyDown" GotFocus="tb_GotFocus" />
    42                         <TextBlock Name="lblInfoHorCalc" TextWrapping="Wrap" Margin="5,0,0,0" />
     43                        <comps:SelectableTextBlock x:Name="lblInfoHorCalc" TextWrapping="Wrap" Margin="5,0,0,0" />
    4344                        <Image VerticalAlignment="Top" Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpHorCalc" MouseLeftButtonDown="Help_Click" Visibility="Hidden" />
    4445                    </DockPanel>
     
    7172                    </Grid.ColumnDefinitions>
    7273                    <Image VerticalAlignment="Top" Grid.Column="1" Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpVertFree" MouseLeftButtonDown="Help_Click" Visibility="Collapsed" />
    73                     <TextBlock Name="lblInfoVertFree" Grid.Column="0" TextWrapping="Wrap" Visibility="Collapsed"></TextBlock>
     74                    <comps:SelectableTextBlock x:Name="lblInfoVertFree" Grid.Column="0" TextWrapping="Wrap" Visibility="Collapsed" />
    7475                </Grid>
    7576                <DockPanel Name="pnlInputControlVertCalc">
     
    112113                    </Grid.ColumnDefinitions>
    113114                    <Image VerticalAlignment="Top" Grid.Column="1" Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpVertCalc" MouseLeftButtonDown="Help_Click" Visibility="Collapsed" />
    114                     <TextBlock Name="lblInfoVertCalc" TextWrapping="Wrap" Visibility="Collapsed"></TextBlock>
     115                    <comps:SelectableTextBlock x:Name="lblInfoVertCalc" TextWrapping="Wrap" Visibility="Collapsed"/>
    115116                </Grid>
    116117            </StackPanel>
     
    120121                    <Label Name="lblSecondParameter" Content="{x:Static lang:Components.secondparameter}"></Label>
    121122                    <TextBox Name="tbSecondParameter" Width="100" HorizontalAlignment="Left" Tag="SecondParameter" KeyUp="tb_KeyDown" GotFocus="tb_GotFocus" />
    122                     <TextBlock Name="lblInfoSecond" TextWrapping="Wrap" Margin="5,0,0,0" />
     123                    <comps:SelectableTextBlock x:Name="lblInfoSecond" TextWrapping="Wrap" Margin="5,0,0,0" />
    123124                </DockPanel>
    124125            </StackPanel>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Components/InputSingleControl.xaml

    r8488 r8648  
    3232                        <Label Name="lblHorFree" Grid.Column="0" Visibility="Collapsed"></Label>
    3333                        <TextBox Name="tbHorFree" Grid.Column="1" Width="100" HorizontalAlignment="Left" Tag="Free" KeyUp="tb_KeyDown" GotFocus="tb_GotFocus"/>
    34                         <TextBlock Name="lblInfoHorFree" Grid.Column="2" TextWrapping="Wrap" Visibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
     34                        <comps:SelectableTextBlock x:Name="lblInfoHorFree" Grid.Column="2" TextWrapping="Wrap" Visibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
    3535                        <Image VerticalAlignment="Top" HorizontalAlignment="Left" Margin="7,0,0,0" Grid.Column="3" Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpHorFree" MouseLeftButtonDown="Help_Click" Visibility="Collapsed"/>
    3636                    </Grid>
     
    4848                        <Label >+</Label>
    4949                        <TextBox Name="tbHorCalcSum" Width="30" HorizontalAlignment="Left" Tag="CalcSum" KeyUp="tb_KeyDown" GotFocus="tb_GotFocus"/>
    50                         <TextBlock Name="lblInfoHorCalc" TextWrapping="Wrap" Margin="5,0,0,0"/>
     50                        <comps:SelectableTextBlock x:Name="lblInfoHorCalc" TextWrapping="Wrap" Margin="5,0,0,0"/>
    5151                        <Image VerticalAlignment="Top" Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpHorCalc" MouseLeftButtonDown="Help_Click" Visibility="Hidden"/>
    5252                    </DockPanel>
     
    7272                            <comps:GenerateRandomControl x:Name="generateNumberControlVertFree" Title="{x:Static lang:Components.generaternd1_Header}"  Margin="7,0,0,0" Visibility="Collapsed" HorizontalAlignment="Left"/>
    7373                        </DockPanel>
    74                         <TextBlock Name="lblInfoVertFree" Grid.Column="1" Grid.Row="1" TextWrapping="Wrap" Visibility="Hidden" HorizontalAlignment="Stretch" Margin="0,3,0,0">sdf</TextBlock>
     74                        <comps:SelectableTextBlock x:Name="lblInfoVertFree" Grid.Column="1" Grid.Row="1" TextWrapping="Wrap" Visibility="Hidden" HorizontalAlignment="Stretch" Margin="0,3,0,0">sdf</comps:SelectableTextBlock>
    7575                        <Image VerticalAlignment="Top" HorizontalAlignment="Right" Grid.Column="2" Grid.Row="1" Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpVertFree" MouseLeftButtonDown="Help_Click" Visibility="Collapsed"/>
    7676                    </Grid>
     
    100100                        </DockPanel>
    101101                        <Image  VerticalAlignment="Top" Grid.Column="2" Grid.Row="1" Cursor="Hand"  HorizontalAlignment="Right" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpVertCalc" MouseLeftButtonDown="Help_Click" Visibility="Collapsed"/>
    102                         <TextBlock Name="lblInfoVertCalc" TextWrapping="Wrap" Visibility="Hidden" Grid.Column="1" Grid.Row="1" Margin="0,3,0,0"></TextBlock>
     102                        <comps:SelectableTextBlock x:Name="lblInfoVertCalc" TextWrapping="Wrap" Visibility="Hidden" Grid.Column="1" Grid.Row="1" Margin="0,3,0,0" />
    103103                    </Grid>
    104104                </DockPanel>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Factorization/FactorizationGraph.xaml

    r5231 r8648  
    33    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    44    xmlns:lang="clr-namespace:Primes.Resources.lang.WpfControls.Factorization"
     5    xmlns:comps="clr-namespace:Primes.WpfControls.Components"
    56    VerticalContentAlignment="Stretch" Loaded="UserControl_Loaded">
    67
     
    1516    <DockPanel>
    1617        <StackPanel HorizontalAlignment="Stretch" DockPanel.Dock="Top">
    17             <TextBlock HorizontalAlignment="Left" Name="lblActualDivisor" Margin="5"></TextBlock>
    18             <TextBlock HorizontalAlignment="Left" Margin="5,0,0,0" Text="{x:Static lang:Factorization.bf_scale}"></TextBlock>
     18            <comps:SelectableTextBlock HorizontalAlignment="Left" x:Name="lblActualDivisor" Margin="5"></comps:SelectableTextBlock>
     19            <comps:SelectableTextBlock HorizontalAlignment="Left" Margin="5,0,0,0" Text="{x:Static lang:Factorization.bf_scale}"></comps:SelectableTextBlock>
    1920            <Slider Name="slider" Maximum="3" Minimum="0.1" HorizontalAlignment="Stretch" VerticalAlignment="Top" Value="1" />
    2021        </StackPanel>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Factorization/QS/QuadraticSieveControl.xaml

    r8491 r8648  
    22    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    33    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    4     xmlns:lang="clr-namespace:Primes.Resources.lang.WpfControls.Factorization">
     4    xmlns:lang="clr-namespace:Primes.Resources.lang.WpfControls.Factorization"
     5    xmlns:comps="clr-namespace:Primes.WpfControls.Components">
    56
    67    <UserControl.Resources>
     
    3738                                    <RowDefinition Height="100" />
    3839                                </Grid.RowDefinitions>
    39                                 <TextBlock Name="lblInfoStep1" Grid.Row="0"></TextBlock>
     40                                <comps:SelectableTextBlock x:Name="lblInfoStep1" Grid.Row="0" />
    4041                                <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
    4142                                    <Grid Name="gridFirstStep" Margin="5">
     
    6162                                <RowDefinition Height="100" />
    6263                            </Grid.RowDefinitions>
    63                             <TextBlock Name="lblInfoStep2" Grid.Row="0"></TextBlock>
     64                            <comps:SelectableTextBlock x:Name="lblInfoStep2" Grid.Row="0" />
    6465                            <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
    6566                                <Grid Name="gridSecondStep" Margin="5">
     
    8586                                <RowDefinition Height="100" />
    8687                            </Grid.RowDefinitions>
    87                             <TextBlock Name="lblInfoStep3" Grid.Row="0"></TextBlock>
     88                            <comps:SelectableTextBlock x:Name="lblInfoStep3" Grid.Row="0" />
    8889                            <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
    8990                                <Grid Name="gridThirdStep" Margin="5" ShowGridLines="False">
     
    106107                                <RowDefinition Height="100" />
    107108                            </Grid.RowDefinitions>
    108                             <TextBlock Name="lblInfoStep4" Grid.Row="0"></TextBlock>
     109                            <comps:SelectableTextBlock x:Name="lblInfoStep4" Grid.Row="0" />
    109110                            <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
    110111                                <StackPanel>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/NumberTheory/Goldbach/GoldbachControl.xaml

    r5374 r8648  
    2222
    2323        <comps:InputRangeControl Grid.Row="0" x:Name="ircGoldbach" InputRangeControlType="Horizontal" ShowButtons="True" ShowCalcInput="False" SecondParameterPresent="false" />
    24         <TextBlock Grid.Row="1" Name="Description" Margin="10,0,10,10" HorizontalAlignment="Left" VerticalAlignment="Top" Text="{x:Static lang:Numbertheory.goldbach_desc}" TextWrapping="Wrap" />
     24        <comps:SelectableTextBlock Grid.Row="1" x:Name="Description" Margin="10,0,10,10" HorizontalAlignment="Left" VerticalAlignment="Top" Text="{x:Static lang:Numbertheory.goldbach_desc}" TextWrapping="Wrap" />
    2525
    2626        <ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
  • trunk/CrypPlugins/Primes/Primes/WpfControls/NumberTheory/PowerMod/PowerModControl.xaml

    r8494 r8648  
    1313                <ResourceDictionary Source="../../Resources/Shared.xaml" />
    1414            </ResourceDictionary.MergedDictionaries>
    15             <Style TargetType="TextBox" x:Key="LabelTextBox">
    16                 <!--Style a TextBox as a text label to make it selectable-->
    17                 <Setter Property="Background" Value="Transparent" />
    18                 <Setter Property="BorderThickness" Value="0" />
    19                 <Setter Property="Padding" Value="0" />
    20                 <Setter Property="IsReadOnly" Value="True" />
    21                 <Setter Property="TextWrapping" Value="Wrap" />
    22             </Style>
    23             <Style TargetType="TextBox" BasedOn="{StaticResource LabelTextBox}" x:Key="DescriptionTextStyle">
     15            <Style TargetType="comps:SelectableTextBlock" x:Key="DescriptionTextStyle">
    2416                <Setter Property="Foreground" Value="OrangeRed" />
    2517                <Setter Property="FontWeight" Value="Bold" />
     
    3729            <StackPanel>
    3830                <DockPanel HorizontalAlignment="Left">
    39                     <TextBox Text="{x:Static lang:Numbertheory.powermod_rsa_description}" Style="{StaticResource DescriptionTextStyle}" Visibility="{Binding Visibility, ElementName=iscExp}" VerticalAlignment="Center" />
    40                     <TextBox Text="{x:Static lang:Numbertheory.powermod_cycle_length_description}" Style="{StaticResource DescriptionTextStyle}" Visibility="{Binding Visibility, ElementName=iscBase}" VerticalAlignment="Center" />
     31                    <comps:SelectableTextBlock Text="{x:Static lang:Numbertheory.powermod_rsa_description}" Style="{StaticResource DescriptionTextStyle}" Visibility="{Binding Visibility, ElementName=iscExp}" VerticalAlignment="Center" />
     32                    <comps:SelectableTextBlock Text="{x:Static lang:Numbertheory.powermod_cycle_length_description}" Style="{StaticResource DescriptionTextStyle}" Visibility="{Binding Visibility, ElementName=iscBase}" VerticalAlignment="Center" />
    4133                </DockPanel>
    4234                <Grid>
     
    5547                    </Grid.RowDefinitions>
    5648
    57                     <TextBox Style="{StaticResource LabelTextBox}" Visibility="{Binding Visibility, ElementName=iscBase}" Text="{x:Static lang:Numbertheory.powermod_base}" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" Margin="5" />
    58                     <TextBox Grid.Column="0" Grid.Row="0" Visibility="{Binding Visibility, ElementName=iscBase}" Style="{StaticResource DescriptionTextStyle}" Text="b" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" />
     49                    <comps:SelectableTextBlock Visibility="{Binding Visibility, ElementName=iscBase}" Text="{x:Static lang:Numbertheory.powermod_base}" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" Margin="5" />
     50                    <comps:SelectableTextBlock Grid.Column="0" Grid.Row="0" Visibility="{Binding Visibility, ElementName=iscBase}" Style="{StaticResource DescriptionTextStyle}" Text="b" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" />
    5951                    <comps:InputSingleControl x:Name="iscBase" Visibility="Collapsed" InputRangeControlType="Horizontal" ShowCalcInput="False" ShowButtons="False" Grid.Column="1" Grid.Row="0" Margin="5" />
    60                     <TextBox Style="{StaticResource LabelTextBox}" Visibility="{Binding Visibility, ElementName=iscMaxExp}" Text="{x:Static lang:Numbertheory.powermod_max_exponent}" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Margin="5" />
     52                    <comps:SelectableTextBlock Visibility="{Binding Visibility, ElementName=iscMaxExp}" Text="{x:Static lang:Numbertheory.powermod_max_exponent}" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Margin="5" />
    6153                    <comps:InputSingleControl x:Name="iscMaxExp" Visibility="Collapsed" InputRangeControlType="Horizontal" ShowCalcInput="False" ShowButtons="False" Grid.Column="1" Grid.Row="1" Margin="5" />
    6254
    63                     <TextBox Style="{StaticResource LabelTextBox}" Visibility="{Binding Visibility, ElementName=iscExp}" Text="{x:Static lang:Numbertheory.powermod_exponent}" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" Margin="5" />
    64                     <TextBox Visibility="{Binding Visibility, ElementName=iscExp}" Style="{StaticResource DescriptionTextStyle}" Text="e" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" />
     55                    <comps:SelectableTextBlock Visibility="{Binding Visibility, ElementName=iscExp}" Text="{x:Static lang:Numbertheory.powermod_exponent}" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" Margin="5" />
     56                    <comps:SelectableTextBlock Visibility="{Binding Visibility, ElementName=iscExp}" Style="{StaticResource DescriptionTextStyle}" Text="e" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" />
    6557                    <comps:InputSingleControl x:Name="iscExp" Visibility="Collapsed" InputRangeControlType="Horizontal" ShowCalcInput="False" ShowButtons="False" Grid.Column="1" Grid.Row="0" Margin="5" />
    66                     <TextBox Style="{StaticResource LabelTextBox}" Visibility="{Binding Visibility, ElementName=iscMaxBase}" Text="{x:Static lang:Numbertheory.powermod_max_base}" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Margin="5" />
     58                    <comps:SelectableTextBlock Visibility="{Binding Visibility, ElementName=iscMaxBase}" Text="{x:Static lang:Numbertheory.powermod_max_base}" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Margin="5" />
    6759                    <comps:InputSingleControl x:Name="iscMaxBase" Visibility="Collapsed" InputRangeControlType="Horizontal" ShowCalcInput="False" ShowButtons="False" Grid.Column="1" Grid.Row="1" Margin="5" />
    6860
    69                     <TextBox x:Name="CycleInfo1" Style="{StaticResource DescriptionTextStyle}" Grid.Column="2" Grid.Row="0" VerticalAlignment="Center" />
    70                     <TextBox x:Name="CycleInfo2" Style="{StaticResource DescriptionTextStyle}" Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" />
     61                    <comps:SelectableTextBlock x:Name="CycleInfo1" Style="{StaticResource DescriptionTextStyle}" Grid.Column="2" Grid.Row="0" VerticalAlignment="Center" />
     62                    <comps:SelectableTextBlock x:Name="CycleInfo2" Style="{StaticResource DescriptionTextStyle}" Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" />
    7163
    72                     <TextBox Style="{StaticResource LabelTextBox}" Text="{x:Static lang:Numbertheory.powermod_modulus}" Grid.Column="3" Grid.Row="0" VerticalAlignment="Center" Margin="5" />
    73                     <TextBox Grid.Column="3" Grid.Row="0" Visibility="{Binding Visibility, ElementName=iscBase}" Style="{StaticResource DescriptionTextStyle}" Text="N" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" />
     64                    <comps:SelectableTextBlock Text="{x:Static lang:Numbertheory.powermod_modulus}" Grid.Column="3" Grid.Row="0" VerticalAlignment="Center" Margin="5" />
     65                    <comps:SelectableTextBlock Grid.Column="3" Grid.Row="0" Visibility="{Binding Visibility, ElementName=iscBase}" Style="{StaticResource DescriptionTextStyle}" Text="N" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" />
    7466                    <comps:InputSingleControl x:Name="iscMod" InputRangeControlType="Horizontal" ShowCalcInput="False" ShowButtons="False" Grid.Column="4" Grid.Row="0" Margin="5" />
    7567                    <Slider Name="slidermodulus" Grid.Row="0" Grid.Column="5" VerticalAlignment="Center" Minimum="2" Maximum="150" Value="2" ValueChanged="slidermodulus_ValueChanged" Margin="5" />
    76                     <TextBox Grid.Column="3" Grid.Row="0" Visibility="{Binding Visibility, ElementName=iscExp}" Style="{StaticResource DescriptionTextStyle}" Text="N" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" />
     68                    <comps:SelectableTextBlock Grid.Column="3" Grid.Row="0" Visibility="{Binding Visibility, ElementName=iscExp}" Style="{StaticResource DescriptionTextStyle}" Text="N" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" />
    7769
    78                     <TextBox Style="{StaticResource LabelTextBox}" Grid.Row="1" Grid.Column="3" Text="{x:Static lang:Numbertheory.powermod_points}" VerticalAlignment="Center" Margin="5" />
     70                    <comps:SelectableTextBlock Grid.Row="1" Grid.Column="3" Text="{x:Static lang:Numbertheory.powermod_points}" VerticalAlignment="Center" Margin="5" />
    7971                    <DockPanel Grid.Row="1" Grid.Column="4" Grid.ColumnSpan="2" VerticalAlignment="Center">
    8072                        <RadioButton Name="rbOne" Margin="5" Command="this:PowerModCommands.ReOrderPointsCommand" Content="{x:Static lang:Numbertheory.powermod_cw}" IsChecked="True" />
     
    108100                <GroupBox HorizontalAlignment="Stretch" DockPanel.Dock="Bottom" Name="spslider" Margin="10" Header="{x:Static lang:Numbertheory.powermod_zoom}">
    109101                    <DockPanel>
    110                         <TextBlock DockPanel.Dock="Right" Margin="5,0,0,0" Text="{Binding Value, ElementName=slider, StringFormat={}{0:0.00}}" />
     102                        <comps:SelectableTextBlock DockPanel.Dock="Right" Margin="5,0,0,0" Text="{Binding Value, ElementName=slider, StringFormat={}{0:0.00}}" />
    111103                        <Slider Name="slider" Maximum="3" Minimum="0.1" HorizontalAlignment="Stretch" VerticalAlignment="Top" Value="1" Interval="1" LargeChange="0.3" />
    112104                    </DockPanel>
     
    176168                                                    <ColumnDefinition Width="*" />
    177169                                                </Grid.ColumnDefinitions>
    178                                                 <TextBlock FontSize="12" VerticalAlignment="Center">
     170                                                <comps:SelectableTextBlock FontSize="12" VerticalAlignment="Center">
    179171                                                        <Run Text="{Binding Iteration, Mode=OneWay}" />.
    180                                                 </TextBlock>
     172                                                </comps:SelectableTextBlock>
    181173                                                <controls:FormulaControl Formula="{Binding Formula}"
    182174                                                                        Grid.Column="1"
  • trunk/CrypPlugins/Primes/Primes/WpfControls/NumberTheory/PrimitivRoots/PrimitivRootControl.xaml

    r5231 r8648  
    3737            </Grid.ColumnDefinitions>
    3838
    39             <TextBlock Grid.Row="0" Grid.Column="0" Padding="5" VerticalAlignment="Center" Text="{x:Static lang:Numbertheory.proot_input}"></TextBlock>
     39            <comps:SelectableTextBlock Grid.Row="0" Grid.Column="0" Padding="5" VerticalAlignment="Center" Text="{x:Static lang:Numbertheory.proot_input}"></comps:SelectableTextBlock>
    4040            <Image Cursor="Hand" Grid.Row="0" Grid.Column="1" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnPrimitivRootInput" HorizontalAlignment="Left" MouseLeftButtonDown="btnPrimitivRootInput_MouseLeftButtonDown" Margin="5" />
    4141            <TextBox Width="200" Name="tbInput" Grid.Row="0" Grid.Column="2" VerticalAlignment="Center" KeyUp="tbInput_KeyUp" Text="13" />
     
    4343                <MenuItem Header="{x:Static lang:Numbertheory.proot_genprimes}" Name="miHeader" IsTextSearchEnabled="False" Click="miHeader_Click" />
    4444            </Menu>
    45             <TextBlock Grid.Row="0" Grid.Column="4" Padding="5" Name="lblInfo" TextWrapping="Wrap" MaxWidth="100"></TextBlock>
     45            <comps:SelectableTextBlock Grid.Row="0" Grid.Column="4" Padding="5" x:Name="lblInfo" TextWrapping="Wrap" MaxWidth="100"></comps:SelectableTextBlock>
    4646            <DockPanel Grid.Row="1" Grid.ColumnSpan="4">
    4747                <Button Name="btnExecute" Margin="5" HorizontalAlignment="Left" Click="btnExecute_Click" Width="100" Content="{x:Static lang:Numbertheory.proot_btnExecute}"></Button>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Primegeneration/InputControlNTimesM.xaml

    r5231 r8648  
    22    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    33    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    4     xmlns:lang="clr-namespace:Primes.Resources.lang.WpfControls.Generation">
     4    xmlns:lang="clr-namespace:Primes.Resources.lang.WpfControls.Generation"
     5    xmlns:comps="clr-namespace:Primes.WpfControls.Components">
    56
    67    <GroupBox Header="{x:Static lang:PrimesGeneration.ntimesm_input}">
     
    2122                    <ColumnDefinition Width="16" />
    2223                </Grid.ColumnDefinitions>
    23                 <TextBlock Name="tbInfo" TextWrapping="Wrap" Grid.Column="0" />
     24                <comps:SelectableTextBlock x:Name="tbInfo" TextWrapping="Wrap" Grid.Column="0" />
    2425                <Image Grid.Column="1" Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpCalculate" HorizontalAlignment="Left" Visibility="Hidden" />
    2526            </Grid>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Primegeneration/PrimesgenerationControl.xaml

    r8488 r8648  
    3232                <DockPanel>
    3333                    <ToggleButton Width="25" VerticalAlignment="Center" HorizontalAlignment="Center" Height="25" Margin="2" Template="{StaticResource ExpanderToggleButton}" Name="tbRandom" Click="tbRandom_Click"></ToggleButton>
    34                     <TextBlock VerticalAlignment="Center" Text="{x:Static lang:PrimesGeneration.rndPrimes}"></TextBlock>
     34                    <comps:SelectableTextBlock VerticalAlignment="Center" Text="{x:Static lang:PrimesGeneration.rndPrimes}"></comps:SelectableTextBlock>
    3535                    <Image Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpGenerateRandom" HorizontalAlignment="Right" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    3636                </DockPanel>
     
    5353                    <ToggleButton Width="25" VerticalAlignment="Center" HorizontalAlignment="Center" Height="25" Margin="2" Template="{StaticResource ExpanderToggleButton}" Name="tbFormular" Click="tbFormular_Click"></ToggleButton>
    5454
    55                     <TextBlock VerticalAlignment="Center" Text="{x:Static lang:PrimesGeneration.rndQuadratic}"></TextBlock>
     55                    <comps:SelectableTextBlock VerticalAlignment="Center" Text="{x:Static lang:PrimesGeneration.rndQuadratic}"></comps:SelectableTextBlock>
    5656                    <Image Cursor="Hand" Source="../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpQuadratic" HorizontalAlignment="Right" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    5757                </DockPanel>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/Graph/CartesianPlane.xaml

    r5231 r8648  
    11<UserControl x:Class="Primes.WpfControls.PrimesDistribution.Graph.CartesianPlane"
    22    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" VerticalContentAlignment="Stretch">
     3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     4    xmlns:comps="clr-namespace:Primes.WpfControls.Components" VerticalContentAlignment="Stretch">
    45
    56    <UserControl.Resources>
     
    1718        <Line Name="Ordinate" X1="100" X2="100" Y1="0" Y2="100" Stroke="Black" StrokeThickness="1" />
    1819        <Line Name="Abscissa" X1="0" X2="200" Y1="50" Y2="50" Stroke="Black" StrokeThickness="1" />
    19         <TextBlock Canvas.Left="47.678" Canvas.Top="0" Name="lblOrdinateText">Y</TextBlock>
    20         <TextBlock Canvas.Left="47.678" Canvas.Top="0" Name="lblAbscissaText">X</TextBlock>
     20        <comps:SelectableTextBlock Canvas.Left="47.678" Canvas.Top="0" x:Name="lblOrdinateText">Y</comps:SelectableTextBlock>
     21        <comps:SelectableTextBlock Canvas.Left="47.678" Canvas.Top="0" x:Name="lblAbscissaText">X</comps:SelectableTextBlock>
    2122    </Canvas>
    2223
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/Graph/GraphControl.xaml

    r8603 r8648  
    5858                                    </ContextMenu>
    5959                                </DockPanel.ContextMenu>
    60                                 <TextBlock Name="lblCalcInfoPiGauss" Visibility="Collapsed" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" Text="{x:Static lang:Distribution.graph_gausscountinfo}"></TextBlock>
    61                                 <TextBlock Name="tbInfoGaußPrimeTheorem" Margin="3,0,0,0" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" />
     60                                <comps:SelectableTextBlock x:Name="lblCalcInfoPiGauss" Visibility="Collapsed" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" Text="{x:Static lang:Distribution.graph_gausscountinfo}"></comps:SelectableTextBlock>
     61                                <comps:SelectableTextBlock x:Name="tbInfoGaußPrimeTheorem" Margin="3,0,0,0" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" />
    6262                            </DockPanel>
    6363                            <Line X1="0" X2="10" Y1="0" Y2="0" Stroke="Green" StrokeThickness="3" Grid.Row="1" VerticalAlignment="Center" />
     
    7272                                    </ContextMenu>
    7373                                </DockPanel.ContextMenu>
    74                                 <TextBlock Name="lblCalcInfoLiN" Visibility="Collapsed" Text="{x:Static lang:Distribution.graph_lincountinfo}" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave">
     74                                <comps:SelectableTextBlock x:Name="lblCalcInfoLiN" Visibility="Collapsed" Text="{x:Static lang:Distribution.graph_lincountinfo}" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave">
    7575
    76                                 </TextBlock>
    77                                 <TextBlock Name="tbInfoLin" Margin="3,0,0,0" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" />
     76                                </comps:SelectableTextBlock>
     77                                <comps:SelectableTextBlock x:Name="tbInfoLin" Margin="3,0,0,0" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" />
    7878                            </DockPanel>
    7979                            <Line X1="0" X2="10" Y1="0" Y2="0" Stroke="Red" StrokeThickness="3" Grid.Row="2" VerticalAlignment="Center" />
     
    8888                                    </ContextMenu>
    8989                                </DockPanel.ContextMenu>
    90                                 <TextBlock Name="lblCalcInfoPiX" Visibility="Collapsed" Margin="0,0,0,0" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" Text="{x:Static lang:Distribution.graph_pincountinfo}"></TextBlock>
    91                                 <TextBlock Name="tbInfoPiX" Margin="3,0,0,0" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" />
     90                                <comps:SelectableTextBlock x:Name="lblCalcInfoPiX" Visibility="Collapsed" Margin="0,0,0,0" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" Text="{x:Static lang:Distribution.graph_pincountinfo}"></comps:SelectableTextBlock>
     91                                <comps:SelectableTextBlock x:Name="tbInfoPiX" Margin="3,0,0,0" MouseEnter="lblInfo_MouseEnter" MouseLeave="lblInfo_MouseLeave" />
    9292                            </DockPanel>
    9393                        </Grid>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/NumberRectangle/NumberRectangleControl.xaml

    r8488 r8648  
    4545        <GroupBox Grid.Row="0" Grid.ColumnSpan="2" Header="{x:Static lang:Distribution.numbergrid_input}" Margin="2">
    4646            <StackPanel>
    47                 <TextBlock Margin="5" Name="lblInfoError" Foreground="Blue"></TextBlock>
     47                <comps:SelectableTextBlock Margin="5" x:Name="lblInfoError" Foreground="Blue"></comps:SelectableTextBlock>
    4848                <Grid>
    4949                    <Grid.ColumnDefinitions>
     
    5858                        <RowDefinition Height="Auto" />
    5959                    </Grid.RowDefinitions>
    60                     <TextBlock Grid.Row="0" Grid.Column="0" Margin="5" VerticalAlignment="Center" Text="{x:Static lang:Distribution.numbergrid_width}"></TextBlock>
     60                    <comps:SelectableTextBlock Grid.Row="0" Grid.Column="0" Margin="5" VerticalAlignment="Center" Text="{x:Static lang:Distribution.numbergrid_width}"></comps:SelectableTextBlock>
    6161
    6262                    <comps:InputSingleControl
     
    7171                        ShowInfoErrorText="False"
    7272                        />
    73                     <TextBlock Grid.Row="0" Grid.Column="2" VerticalAlignment="Center" Margin="5" Text="{x:Static lang:Distribution.numbergrid_height}"></TextBlock>
     73                    <comps:SelectableTextBlock Grid.Row="0" Grid.Column="2" VerticalAlignment="Center" Margin="5" Text="{x:Static lang:Distribution.numbergrid_height}"></comps:SelectableTextBlock>
    7474                    <comps:InputSingleControl
    7575                        x:Name="iscHeight"
     
    8383                        ShowInfoErrorText="False"
    8484                        />
    85                     <TextBlock Margin="5" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Text="{x:Static lang:Distribution.numbergrid_start}"></TextBlock>
     85                    <comps:SelectableTextBlock Margin="5" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Text="{x:Static lang:Distribution.numbergrid_start}"></comps:SelectableTextBlock>
    8686                    <comps:InputSingleControl
    8787                        x:Name="iscStart"
     
    115115                <RowDefinition Height="32" />
    116116            </Grid.RowDefinitions>
    117             <TextBlock Grid.Row="0" TextWrapping="Wrap" MinWidth="100" Text="{x:Static lang:Distribution.numbergrid_scroll}" Visibility="Collapsed"></TextBlock>
     117            <comps:SelectableTextBlock Grid.Row="0" TextWrapping="Wrap" MinWidth="100" Text="{x:Static lang:Distribution.numbergrid_scroll}" Visibility="Collapsed"></comps:SelectableTextBlock>
    118118            <Button Template="{StaticResource doublearrowbtntmpl}" Grid.Row="1" Width="36" HorizontalAlignment="Right" Name="btnFastUp" Click="btnScroll_Click" ToolTip="{x:Static lang:Distribution.numbergrid_tooltipscrollupfast}" />
    119119            <Button Template="{StaticResource simplearrowbtntmpl}" Grid.Row="3" Width="36" HorizontalAlignment="Right" Name="btnUp" Click="btnScroll_Click" ToolTip="{x:Static lang:Distribution.numbergrid_tooltipscrollup}" />
     
    131131
    132132        <DockPanel Grid.Row="1" Grid.Column="1" Margin="5">
    133             <TextBlock Margin="0,0,5,0" Name="lblActualNumberInfo" Text="{x:Static lang:Distribution.numbergrid_actualnumber}"></TextBlock>
    134             <TextBlock Name="lblActualNumber" />
     133            <comps:SelectableTextBlock Margin="0,0,5,0" x:Name="lblActualNumberInfo" Text="{x:Static lang:Distribution.numbergrid_actualnumber}"></comps:SelectableTextBlock>
     134            <comps:SelectableTextBlock x:Name="lblActualNumber" />
    135135        </DockPanel>
    136136        <Border VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Row="2" Grid.Column="1">
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/Numberline/NumberlineControl.xaml

    r8491 r8648  
    1212            </ResourceDictionary.MergedDictionaries>
    1313
    14             <Style TargetType="{x:Type TextBlock}">
     14            <Style TargetType="{x:Type comps:SelectableTextBlock}">
    1515                <Setter Property="Margin" Value="0,0,7,0" />
    1616                <Setter Property="FontSize" Value="13" />
     
    211211            </Grid.RowDefinitions>
    212212
    213             <TextBlock Grid.Row="0" TextWrapping="Wrap" Margin="0,5,0,5" Text="{x:Static lang:Distribution.numberline_header}" />
     213            <comps:SelectableTextBlock Grid.Row="0" TextWrapping="Wrap" Margin="0,5,0,5" Text="{x:Static lang:Distribution.numberline_header}" />
    214214
    215215            <Grid Grid.Row="1">
     
    280280            </Grid>
    281281
    282             <TextBlock Grid.Row="2" TextWrapping="Wrap" Margin="0,10,0,10" Text="{x:Static lang:Distribution.numberline_maxinterval}" />
     282            <comps:SelectableTextBlock Grid.Row="2" TextWrapping="Wrap" Margin="0,10,0,10" Text="{x:Static lang:Distribution.numberline_maxinterval}" />
    283283
    284284            <Grid Grid.Row="3" Margin="0,0,0,15">
     
    288288                </Grid.RowDefinitions>
    289289
    290                 <TextBlock Grid.Row="0" Name="tbInfoError" Foreground="Blue" Height="Auto"></TextBlock>
     290                <comps:SelectableTextBlock Grid.Row="0" x:Name="tbInfoError" Foreground="Blue" Height="Auto"></comps:SelectableTextBlock>
    291291
    292292                <Grid Margin="0" Grid.Row="1">
     
    342342
    343343                        <StackPanel Grid.Column="2">
    344                             <TextBlock HorizontalAlignment="Center" Text="{x:Static lang:Distribution.numberline_pointsdisplayed}"></TextBlock>
    345                             <TextBlock HorizontalAlignment="Center" Name="lblCountPoints" VerticalAlignment="Center">44</TextBlock>
     344                            <comps:SelectableTextBlock HorizontalAlignment="Center" Text="{x:Static lang:Distribution.numberline_pointsdisplayed}"></comps:SelectableTextBlock>
     345                            <comps:SelectableTextBlock HorizontalAlignment="Center" x:Name="lblCountPoints" VerticalAlignment="Center">44</comps:SelectableTextBlock>
    346346                        </StackPanel>
    347347
     
    406406                    <DockPanel Canvas.Top="0" Canvas.Left="0" Name="pActualNumber">
    407407                        <Polygon Canvas.Top="0" Canvas.Left="0" Points="0,0, 15,0, 7.5,10" Fill="Yellow" Stroke="Black" StrokeThickness="0.5" />
    408                         <TextBlock Canvas.Top="0" Canvas.Left="0" Name="textActualNumber" Text="2" FontSize="10" VerticalAlignment="Top" Margin="0" />
     408                        <comps:SelectableTextBlock Canvas.Top="0" Canvas.Left="0" x:Name="textActualNumber" Text="2" FontSize="10" VerticalAlignment="Top" Margin="0" />
    409409                    </DockPanel>
    410410
     
    444444                                <StackPanel Grid.Row="0" Name="pnlCountPrimes" Grid.ColumnSpan="3" Margin="0,0,0,7">
    445445                                    <DockPanel Margin="0,0,0,5">
    446                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" MinWidth="100" Name="lblInfoCountPrimesInterval" Text="{x:Static lang:Distribution.numberline_headercoutprimes}"></TextBlock>
     446                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" MinWidth="100" x:Name="lblInfoCountPrimesInterval" Text="{x:Static lang:Distribution.numberline_headercoutprimes}"></comps:SelectableTextBlock>
    447447                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpCountPrimes" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" MinWidth="100" />
    448448                                    </DockPanel>
    449449                                    <DockPanel Margin="10,0,0,7">
    450                                         <TextBlock HorizontalAlignment="Left" Name="lblCountPrimesPi" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_countprimespin}"></TextBlock>
     450                                        <comps:SelectableTextBlock HorizontalAlignment="Left" x:Name="lblCountPrimesPi" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_countprimespin}"></comps:SelectableTextBlock>
    451451                                    </DockPanel>
    452452                                    <DockPanel Margin="10,0,0,0">
    453                                         <TextBlock HorizontalAlignment="Left" Name="lblCountPrimesGauss" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_countprimesgauss}"></TextBlock>
     453                                        <comps:SelectableTextBlock HorizontalAlignment="Left" x:Name="lblCountPrimesGauss" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_countprimesgauss}"></comps:SelectableTextBlock>
    454454                                    </DockPanel>
    455455                                </StackPanel>
     
    461461                                        <ColumnDefinition Width="*" />
    462462                                    </Grid.ColumnDefinitions>
    463                                     <TextBlock FontWeight="Bold" Text="{x:Static lang:Distribution.numberline_actualnumber}" Grid.Column="0" VerticalAlignment="Center" />
    464                                     <TextBlock Name="lblActualNumber" Grid.Column="1" TextWrapping="Wrap" FontWeight="Bold" FontSize="15" MaxWidth="100" VerticalAlignment="Center" />
    465                                     <TextBlock Name="lblActualNumberInfo" Grid.Column="2" MaxWidth="100" HorizontalAlignment="Left" VerticalAlignment="Center" />
     463                                    <comps:SelectableTextBlock FontWeight="Bold" Text="{x:Static lang:Distribution.numberline_actualnumber}" Grid.Column="0" VerticalAlignment="Center" />
     464                                    <comps:SelectableTextBlock x:Name="lblActualNumber" Grid.Column="1" TextWrapping="Wrap" FontWeight="Bold" FontSize="15" MaxWidth="100" VerticalAlignment="Center" />
     465                                    <comps:SelectableTextBlock x:Name="lblActualNumberInfo" Grid.Column="2" MaxWidth="100" HorizontalAlignment="Left" VerticalAlignment="Center" />
    466466                                </Grid>
    467467
    468468                                <DockPanel Grid.Row="2" Name="pnlNextPrimes" Grid.ColumnSpan="3" Margin="0,0,0,7">
    469                                     <TextBlock Text="{x:Static lang:Distribution.numberline_priorprime}" HorizontalAlignment="Left" TextWrapping="Wrap" Margin="10,0,10,0" MaxWidth="170" VerticalAlignment="Center" Width="Auto" />
    470                                     <TextBlock Name="lblPriorPrime" TextWrapping="Wrap" FontWeight="Bold" FontSize="15" HorizontalAlignment="Left" MaxWidth="150" />
    471                                     <TextBlock Text="{x:Static lang:Distribution.numberline_nextprime}" HorizontalAlignment="Left" TextWrapping="Wrap" Margin="10,0,10,0" MaxWidth="170" VerticalAlignment="Center" Width="Auto" />
    472                                     <TextBlock Name="lblNextPrime" TextWrapping="Wrap" FontWeight="Bold" FontSize="15" HorizontalAlignment="Left" MaxWidth="150" />
     469                                    <comps:SelectableTextBlock Text="{x:Static lang:Distribution.numberline_priorprime}" HorizontalAlignment="Left" TextWrapping="Wrap" Margin="10,0,10,0" MaxWidth="170" VerticalAlignment="Center" Width="Auto" />
     470                                    <comps:SelectableTextBlock x:Name="lblPriorPrime" TextWrapping="Wrap" FontWeight="Bold" FontSize="15" HorizontalAlignment="Left" MaxWidth="150" />
     471                                    <comps:SelectableTextBlock Text="{x:Static lang:Distribution.numberline_nextprime}" HorizontalAlignment="Left" TextWrapping="Wrap" Margin="10,0,10,0" MaxWidth="170" VerticalAlignment="Center" Width="Auto" />
     472                                    <comps:SelectableTextBlock x:Name="lblNextPrime" TextWrapping="Wrap" FontWeight="Bold" FontSize="15" HorizontalAlignment="Left" MaxWidth="150" />
    473473                                </DockPanel>
    474474
    475475                                <DockPanel Grid.Row="3" Margin="0,0,0,7">
    476                                     <TextBlock FontWeight="Bold" Margin="0,0,10,0" Text="{x:Static lang:Distribution.numberline_numberofprimes}" VerticalAlignment="Center" />
    477                                     <TextBlock FontWeight="Bold" FontSize="15" Name="lblInfoCountPrimes" VerticalAlignment="Center" />
     476                                    <comps:SelectableTextBlock FontWeight="Bold" Margin="0,0,10,0" Text="{x:Static lang:Distribution.numberline_numberofprimes}" VerticalAlignment="Center" />
     477                                    <comps:SelectableTextBlock FontWeight="Bold" FontSize="15" x:Name="lblInfoCountPrimes" VerticalAlignment="Center" />
    478478                                </DockPanel>
    479479
    480480                                <StackPanel Grid.Row="4" Grid.ColumnSpan="3" Margin="0,0,0,7">
    481481                                    <DockPanel>
    482                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_factorization}" />
     482                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_factorization}" />
    483483                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpFactorize" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    484                                         <TextBlock Name="lblCalcFactorizationInfo" Margin="0,0,0,0" Visibility="Hidden" TextWrapping="Wrap" Width="150" />
    485                                         <TextBlock Name="lblCalcFactorization" Margin="0,0,0,0" TextWrapping="Wrap" />
    486                                     </DockPanel>
    487                                     <TextBlock HorizontalAlignment="Left" Name="lblFactors" TextWrapping="Wrap" Margin="10,0,0,0" />
     484                                        <comps:SelectableTextBlock x:Name="lblCalcFactorizationInfo" Margin="0,0,0,0" Visibility="Hidden" TextWrapping="Wrap" Width="150" />
     485                                        <comps:SelectableTextBlock x:Name="lblCalcFactorization" Margin="0,0,0,0" TextWrapping="Wrap" />
     486                                    </DockPanel>
     487                                    <comps:SelectableTextBlock HorizontalAlignment="Left" x:Name="lblFactors" TextWrapping="Wrap" Margin="10,0,0,0" />
    488488                                </StackPanel>
    489489
    490490                                <StackPanel Grid.Row="5" Grid.ColumnSpan="3" Margin="0,0,0,7">
    491491                                    <DockPanel>
    492                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_goldbach}" />
     492                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_goldbach}" />
    493493                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpGoldbach" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    494494                                        <TextBlock TextWrapping="Wrap" MouseLeftButtonDown="lblCalcInfo_MouseLeftButtonDown" Name="lblGoldbachInfoCalc" Cursor="Hand" Foreground="Blue" />
     
    506506                                <StackPanel Grid.Row="6" Grid.ColumnSpan="3" Margin="0,0,0,7">
    507507                                    <DockPanel>
    508                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_eulerphi}" />
     508                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_eulerphi}" />
    509509                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpEulerPhi" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    510510                                        <TextBlock Name="lblCalcEulerPhiInfo" Margin="0,0,0,0" Visibility="Hidden" TextWrapping="Wrap" MouseLeftButtonDown="lblCalcInfo_MouseLeftButtonDown" Cursor="Hand" Foreground="Blue"></TextBlock>
     
    522522                                <StackPanel Grid.Row="7" Grid.ColumnSpan="3" Margin="0,0,0,7">
    523523                                    <DockPanel>
    524                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_divcount}"></TextBlock>
     524                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_divcount}"></comps:SelectableTextBlock>
    525525                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpTau" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    526526                                        <TextBlock Name="lblCalcTauInfo" Margin="0,0,0,0" TextWrapping="Wrap" MouseLeftButtonDown="lblCalcInfo_MouseLeftButtonDown" Cursor="Hand" Foreground="Blue"></TextBlock>
     
    538538                                <StackPanel Grid.Row="8" Grid.ColumnSpan="3" Margin="0,0,0,7">
    539539                                    <DockPanel>
    540                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_divsum}"></TextBlock>
     540                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_divsum}"></comps:SelectableTextBlock>
    541541                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpRho" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    542542                                        <TextBlock Name="lblCalcRhoInfo" Margin="0,0,0,0" TextWrapping="Wrap" MouseLeftButtonDown="lblCalcInfo_MouseLeftButtonDown" Cursor="Hand" Foreground="Blue"></TextBlock>
     
    554554                                <StackPanel Grid.Row="9" Grid.ColumnSpan="3" Margin="0,0,0,7">
    555555                                    <DockPanel>
    556                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_eulerphisum}"></TextBlock>
     556                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_eulerphisum}"></comps:SelectableTextBlock>
    557557                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpDivSum" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    558558                                        <TextBlock Name="lblCalcDividerSum" Margin="0,0,0,0" TextWrapping="Wrap" MouseLeftButtonDown="lblCalcInfo_MouseLeftButtonDown" Cursor="Hand" Foreground="Blue"></TextBlock>
     
    570570                                <StackPanel Name="pnlTwinPrimes" Grid.ColumnSpan="3" Grid.Row="10" Margin="0,0,0,7">
    571571                                    <DockPanel>
    572                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_twinprime}"></TextBlock>
     572                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_twinprime}"></comps:SelectableTextBlock>
    573573                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpTwinPrimes" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    574574                                    </DockPanel>
    575575
    576                                     <TextBlock Name="lblTwinPrimes" Visibility="Collapsed" TextWrapping="Wrap" Margin="10,0,0,0" />
    577                                     <TextBlock Name="lblTwinPrimes2" TextWrapping="Wrap" Margin="10,0,0,0" />
     576                                    <comps:SelectableTextBlock x:Name="lblTwinPrimes" Visibility="Collapsed" TextWrapping="Wrap" Margin="10,0,0,0" />
     577                                    <comps:SelectableTextBlock x:Name="lblTwinPrimes2" TextWrapping="Wrap" Margin="10,0,0,0" />
    578578                                </StackPanel>
    579579
    580580                                <StackPanel Name="pnlQuadrupletPrimes" Grid.ColumnSpan="3" Visibility="Collapsed" Grid.Row="11" Margin="0,0,0,10">
    581581                                    <DockPanel>
    582                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_quadtuplet}"></TextBlock>
     582                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_quadtuplet}"></comps:SelectableTextBlock>
    583583                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpQuadrupletPrimes" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    584584                                    </DockPanel>
    585                                     <TextBlock Name="lblQuadrupletPrimes" TextWrapping="Wrap" Margin="10,0,0,0" />
     585                                    <comps:SelectableTextBlock x:Name="lblQuadrupletPrimes" TextWrapping="Wrap" Margin="10,0,0,0" />
    586586                                </StackPanel>
    587587
    588588                                <StackPanel Name="pnlSixTupletPrimes" Grid.ColumnSpan="3" Visibility="Collapsed" Grid.Row="12">
    589589                                    <DockPanel>
    590                                         <TextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_sixtuplet}"></TextBlock>
     590                                        <comps:SelectableTextBlock FontWeight="Bold" TextWrapping="Wrap" Text="{x:Static lang:Distribution.numberline_sixtuplet}"></comps:SelectableTextBlock>
    591591                                        <Image Cursor="Hand" Source="../../../Resources/icons/help.png" Width="16" Height="16" Name="btnHelpSixTupletPrimes" HorizontalAlignment="Left" MouseLeftButtonDown="btnHelp_MouseLeftButtonDown" Margin="0,0,4,0" />
    592592                                    </DockPanel>
    593                                     <TextBlock Name="lblSixTupletPrimes" TextWrapping="Wrap" Margin="10,0,0,0" />
     593                                    <comps:SelectableTextBlock x:Name="lblSixTupletPrimes" TextWrapping="Wrap" Margin="10,0,0,0" />
    594594                                </StackPanel>
    595595
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/Spirals/PrimesprialControl.xaml

    r5231 r8648  
    3434            <Button Name="btnExecute" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left" Width="100" Click="btnExecute_Click" Margin="7" Content="{x:Static lang:Distribution.ulam_btnExecute}"></Button>
    3535            <Button Name="btnCancel" Grid.Row="1" Grid.Column="1" Width="100" Click="btnCancel_Click" IsEnabled="False" Margin="7" Content="{x:Static lang:Distribution.ulam_btnCancel}"></Button>
    36             <TextBlock Name="lblInfo" Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" TextWrapping="Wrap" Foreground="Blue" />
     36            <comps:SelectableTextBlock x:Name="lblInfo" Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" TextWrapping="Wrap" Foreground="Blue" />
    3737        </Grid>
    3838        <spirals:UlamSpiral x:Name="spiral" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/Spirals/UlamSpiral.xaml

    r8613 r8648  
    4444            </Grid.ColumnDefinitions>
    4545
    46             <TextBlock Grid.Column="0" Grid.Row="0" Text="{x:Static lang:Distribution.ulam_zoom}" Margin="0,0,10,0" />
     46            <comps:SelectableTextBlock Grid.Column="0" Grid.Row="0" Text="{x:Static lang:Distribution.ulam_zoom}" Margin="0,0,10,0" />
    4747            <Slider Grid.Column="1" Grid.Row="0" Name="silderScale" Minimum="0.5" Maximum="2" Value="1" />
    4848
    49             <TextBlock Grid.Column="0" Grid.Row="1" Text="{x:Static lang:Distribution.ulam_rotate}" Margin="0,0,10,0" />
     49            <comps:SelectableTextBlock Grid.Column="0" Grid.Row="1" Text="{x:Static lang:Distribution.ulam_rotate}" Margin="0,0,10,0" />
    5050            <Slider Grid.Column="1" Grid.Row="1" Name="silderRotate" Minimum="0" Maximum="360" Value="0" ValueChanged="silderRotate_ValueChanged" />
    51             <TextBlock Grid.Column="2" Grid.Row="1" Text="0.00°" Name="lblRotation" TextAlignment="Right" />
     51            <comps:SelectableTextBlock Grid.Column="2" Grid.Row="1" Text="0.00°" x:Name="lblRotation" TextAlignment="Right" />
    5252        </Grid>
    5353
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Primetest/MillerRabin/MillerRabinControl.xaml

    r5231 r8648  
    3434                        <ColumnDefinition Width="*" />
    3535                    </Grid.ColumnDefinitions>
    36                     <TextBlock Grid.Row="0" Grid.Column="0" Margin="0,6,0,0" Text="{x:Static lang:Primetest.mr_countrounds}"></TextBlock>
     36                    <comps:SelectableTextBlock Grid.Row="0" Grid.Column="0" Margin="0,6,0,0" Text="{x:Static lang:Primetest.mr_countrounds}"></comps:SelectableTextBlock>
    3737                    <comps:InputSingleControl Grid.Row="0" Grid.Column="1" x:Name="iscRounds" InputRangeControlType="Horizontal" ShowButtons="False" ShowCalcInput="False" Margin="0,4,0,0" FreeText="10" />
    38                     <TextBlock Grid.Row="1" Grid.Column="0" Margin="0,6,0,0" Text="{x:Static lang:Primetest.mr_choosearnd}"></TextBlock>
     38                    <comps:SelectableTextBlock Grid.Row="1" Grid.Column="0" Margin="0,6,0,0" Text="{x:Static lang:Primetest.mr_choosearnd}"></comps:SelectableTextBlock>
    3939                    <comps:InputSingleControl Grid.Row="1" Grid.Column="1" x:Name="iscBaseRandom" InputRangeControlType="Horizontal" ShowButtons="False" ShowCalcInput="False" Margin="0,4,0,0" FreeText="1000" />
    4040                </Grid>
    4141                <DockPanel Name="pnlSystematic" Visibility="Collapsed">
    42                     <TextBlock Margin="0,5,0,0" Text="{x:Static lang:Primetest.mr_chooseasys}"></TextBlock>
     42                    <comps:SelectableTextBlock Margin="0,5,0,0" Text="{x:Static lang:Primetest.mr_chooseasys}"></comps:SelectableTextBlock>
    4343                    <comps:InputRangeControl x:Name="ircSystematic" ShowButtons="False" InputRangeControlType="Horizontal" ShowCalcInput="False" SecondParameterPresent="False" Title="" />
    4444                </DockPanel>
  • trunk/CrypPlugins/Primes/Primes/WpfControls/Primetest/TestOfFermat/TestOfFermatControl.xaml

    r5231 r8648  
    3737            </Grid>
    3838            <DockPanel Name="pnlSystematic" Visibility="Collapsed">
    39                 <TextBlock Margin="0,5,0,0">Wahl der Basis</TextBlock>
     39                <comps:SelectableTextBlock Margin="0,5,0,0">Wahl der Basis</comps:SelectableTextBlock>
    4040                <comps:InputRangeControl x:Name="ircSystematic" ShowButtons="False" InputRangeControlType="Horizontal" ShowCalcInput="False" Title="" />
    4141            </DockPanel>
     
    5858                <Label Name="lblA" Grid.Column="0" Grid.RowSpan="2">a
    5959                </Label>
    60                 <TextBlock Grid.Column="1" Grid.Row="0" Name="lblExp">p-1</TextBlock>
     60                <comps:SelectableTextBlock Grid.Column="1" Grid.Row="0" x:Name="lblExp">p-1</comps:SelectableTextBlock>
    6161                <Label Name="lblMod" Grid.Column="2" Grid.RowSpan="2">mod
    6262                </Label>
     
    6565                <Label Name="lblEquals" Grid.Column="4" Grid.RowSpan="2">=
    6666                </Label>
    67                 <TextBlock Grid.Column="5" Grid.RowSpan="2" VerticalAlignment="Center" Name="lblCalc"></TextBlock>
     67                <comps:SelectableTextBlock Grid.Column="5" Grid.RowSpan="2" VerticalAlignment="Center" x:Name="lblCalc"></comps:SelectableTextBlock>
    6868            </Grid>
    6969        </ScrollViewer>
  • trunk/CrypPlugins/Primes/Primes/WpfResources/Shared.xaml

    r8491 r8648  
    11<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    2     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
     2    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     3    xmlns:System="clr-namespace:System;assembly=mscorlib"
     4    xmlns:comps="clr-namespace:Primes.WpfControls.Components">
    35
    46    <ResourceDictionary.MergedDictionaries>
     
    4143                        <Border Name="Header" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2" Grid.Column="1">
    4244                            <Label FontWeight="Bold">
    43                                 <ContentPresenter ContentSource="Header" RecognizesAccessKey="true" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
     45                                <ContentPresenter ContentSource="Header" RecognizesAccessKey="true" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
     46                                    <ContentPresenter.ContentTemplate>
     47                                        <DataTemplate DataType="{x:Type System:String}">
     48                                            <comps:SelectableTextBlock Text="{Binding}" />
     49                                        </DataTemplate>
     50                                    </ContentPresenter.ContentTemplate>
     51                                </ContentPresenter>
    4452                            </Label>
    4553                        </Border>
     
    502510                                    Template="{StaticResource ExpanderToggleButton}"
    503511                                    Background="{StaticResource NormalBrush}" />
    504                                 <TextBlock
     512                                <comps:SelectableTextBlock
    505513                                    Name="cnt"
    506514                                    Grid.Column="1"
Note: See TracChangeset for help on using the changeset viewer.