public void viewportAdded()
 {
     if (ViewportAdded != null)
     {
         ViewportAdded.Invoke();
     }
 }
Exemple #2
0
        public void AddViewport(ShadowVisual shadowViewport)
        {
            _viewports[shadowViewport.Visual] = shadowViewport;
            ViewportAdded?.Invoke(this, new ShadowViewportEventArgs(shadowViewport));

            // update viewport count on hosting monitor
            ShadowMonitor monitor = _monitors[shadowViewport.Monitor];

            monitor.AddViewport();

            shadowViewport.ViewportChanged += Raw_ViewportChanged;

            // recalculate, delayed
            ScheduleGeometryChange();
        }