source: trunk/CrypPlugins/AutokorrelationFunction/AutocorrelationPresentation.xaml.cs @ 1675

Last change on this file since 1675 was 1675, checked in by nolte, 12 years ago

+Added the functionality to the autocorrelationpresentation
+Created another Sample to show how to choose a key from the autokey analyser list

descriptions will follow soon

File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Data;
8using System.Windows.Documents;
9using System.Windows.Input;
10using System.Windows.Media;
11using System.Windows.Media.Imaging;
12using System.Windows.Navigation;
13using System.Windows.Shapes;
14using Cryptool.PluginBase.Utils.Graphics.Diagrams.Histogram;
15
16
17namespace Cryptool.Plugins.AutokorrelationFunction
18{
19    /// <summary>
20    /// Interaction logic for AutocorrelationPresentation.xaml
21    /// </summary>
22    public partial class AutocorrelationPresentation : UserControl
23    {
24        public AutocorrelationPresentation()
25        {
26            InitializeComponent();
27            SizeChanged += new SizeChangedEventHandler(AutocorrelationPresentation_SizeChanged);
28        }
29
30        private void AutocorrelationPresentation_SizeChanged(object sender, SizeChangedEventArgs e)
31        {
32            updateScaling();
33        }
34
35        private void updateScaling()
36        {
37            this.scaler.ScaleX = this.ActualWidth / this.Grid.Width;
38            this.scaler.ScaleY = this.scaler.ScaleX;
39        }
40    }
41}
Note: See TracBrowser for help on using the repository browser.