Beispiel #1
0
 private void RaisePlotterAreaSizeChangedEvent(PlotterAreaSizeChangedEventArgs e)
 {
     if (this.PlotterAreaSizeChangedEvent != null)
     {
         PlotterAreaSizeChangedEvent(this, e);
     }
 }
Beispiel #2
0
 private void plotterArea_PlotterAreaSizeChangedEvent(object sender, PlotterAreaSizeChangedEventArgs e)
 {
     if (e.Size.Width > 0.0 && e.Size.Height > 0.0)
     {
         var plotMargin = PlotAreaMargin;
         this.PlotterSize = new Size(e.Size.Width, e.Size.Height);
         UpdatePloterSize();
     }
     Refresh();
 }
Beispiel #3
0
        protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
        {
            base.OnRenderSizeChanged(sizeInfo);
            var args = new PlotterAreaSizeChangedEventArgs()
            {
                Size          = sizeInfo.NewSize,
                WidthChanged  = sizeInfo.WidthChanged,
                HeightChanged = sizeInfo.HeightChanged,
            };

            RaisePlotterAreaSizeChangedEvent(args);
        }