Changeset 8662


Ignore:
Timestamp:
Feb 22, 2020, 3:16:37 PM (2 years ago)
Author:
Sven Rech
Message:

Primes tutorial: "Number grid" page: Moved "current number" indicator to horizontal center.

Location:
trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/NumberRectangle
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/NumberRectangle/NumberRectangleControl.xaml

    r8648 r8662  
    130130        </Grid>
    131131
    132         <DockPanel Grid.Row="1" Grid.Column="1" Margin="5">
    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" />
    135         </DockPanel>
     132        <comps:SelectableTextBlock x:Name="lblActualNumberInfo" Grid.Row="1" Grid.Column="1" Margin="5" HorizontalAlignment="Center" Visibility="Hidden">
     133            <Run Text="{x:Static lang:Distribution.numbergrid_actualnumber}"/>
     134            <Run x:Name="lblActualNumber" />
     135        </comps:SelectableTextBlock>
     136
    136137        <Border VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Row="2" Grid.Column="1">
    137138            <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Name="sv" Margin="5">
  • trunk/CrypPlugins/Primes/Primes/WpfControls/PrimesDistribution/NumberRectangle/NumberRectangleControl.xaml.cs

    r8109 r8662  
    583583            lblActualNumber.Text = m_start.Add(PrimesBigInteger.ValueOf(this.Columns * row)).Add(PrimesBigInteger.ValueOf(col)).ToString("D");
    584584            lblActualNumberInfo.Visibility = Visibility.Visible;
    585             lblActualNumber.Visibility = Visibility.Visible;
    586585        }
    587586
     
    589588        {
    590589            lblActualNumberInfo.Visibility = Visibility.Hidden;
    591             lblActualNumber.Visibility = Visibility.Hidden;
    592590        }
    593591
Note: See TracChangeset for help on using the changeset viewer.