Ignore:
Timestamp:
Jun 26, 2010, 5:48:36 PM (11 years ago)
Author:
Paul Lelgemann
Message:

o KeySearcher: improved visualization of local and distributed components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/Presentation/Controls/LocalQuickWatchPresentation.xaml.cs

    r1682 r1705  
    1313        {
    1414            InitializeComponent();
    15             SizeChanged += sizeChanged;
    1615            this.DataContext = entries;
    17         }
    18 
    19         public void sizeChanged(Object sender, EventArgs eventArgs)
    20         {
    21             double height = this.ActualHeight - this.Grid.ActualHeight;
    22             if(height<0){
    23                 height=0;
    24             }
    25             this.ListView.Height = height;
    26             this.ListView.Width = this.ActualWidth;
    27 
    28             double heightTransform = (this.ActualHeight - height) / this.Grid.ActualHeight;
    29             double widthTransform = this.ActualWidth / this.Grid.ActualWidth;
    30 
    31             if (widthTransform > heightTransform)
    32             {
    33                 widthTransform = heightTransform;
    34             }
    35                
    36 
    37             this.Grid.RenderTransform = new ScaleTransform(widthTransform, heightTransform);
    3816        }
    3917    }
Note: See TracChangeset for help on using the changeset viewer.