Ignore:
Timestamp:
Jun 24, 2010, 4:12:57 PM (12 years ago)
Author:
nolte
Message:

Exchanged the scale-event through a Viewbox (thx Paul)...now scaling the presentations gets a lot easier!!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/AutokorrelationFunction/AutocorrelationPresentation.xaml.cs

    r1675 r1699  
    2424        public AutocorrelationPresentation()
    2525        {
    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;
     26            InitializeComponent();       
    3927        }
    4028    }
     29
     30    //INFO TO ALL DEVELOPERS WORKING ON PRESENTATIONS:
     31    //To resize the quickview the same way as this plugin does just use a <Viewbow> around all your other Presentation Elements!
    4132}
Note: See TracChangeset for help on using the changeset viewer.