source: trunk/CrypPlugins/MD5/Presentation/Displays/DataIntegerDisplay.xaml.cs @ 1488

Last change on this file since 1488 was 1488, checked in by pretzsch, 12 years ago

MD5 visualization: Fixed and improved presentation of parsed data block integers

File size: 1.8 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;
14
15namespace Cryptool.MD5.Presentation.Displays
16{
17        /// <summary>
18        /// Interaction logic for DataIntegerDisplay.xaml
19        /// </summary>
20        public partial class DataIntegerDisplay : UserControl
21        {
22        public int HighlightedValue
23        {
24            get { return (int)GetValue(HighlightedValueProperty); }
25            set { SetValue(HighlightedValueProperty, value); }
26        }
27
28        public UInt32[] DisplayedValues
29        {
30            get { return (UInt32[])GetValue(DisplayedValuesProperty); }
31            set { SetValue(DisplayedValuesProperty, value); }
32        }
33
34        // Using a DependencyProperty as the backing store for DisplayedValues.  This enables animation, styling, binding, etc...
35        public static readonly DependencyProperty DisplayedValuesProperty =
36            DependencyProperty.Register("DisplayedValues", typeof(UInt32[]), typeof(DataIntegerDisplay), new UIPropertyMetadata(new UInt32[16]));
37
38            // Using a DependencyProperty as the backing store for HighlightedValue.  This enables animation, styling, binding, etc...
39        public static readonly DependencyProperty HighlightedValueProperty =
40            DependencyProperty.Register("HighlightedValue", typeof(int), typeof(DataIntegerDisplay), new UIPropertyMetadata(-1));
41
42       
43                public DataIntegerDisplay()
44                {
45                        this.InitializeComponent();
46                       
47                        Width = double.NaN;
48                        Height = double.NaN;
49                }
50        }
51}
Note: See TracBrowser for help on using the repository browser.