private void RenderScene_Resize(object sender, EventArgs e) { //update the main dragger IntVector2 surfaceDimensions = new IntVector2(_renderSurface.Width, _renderSurface.Height); if (MainApplication != null) { Dragger dragger = MainApplication.GetDragger(); if (dragger != null) { dragger.SurfaceDimensions = surfaceDimensions; } } }