protected override void ResetCamera() { AutoResetCamera = true; base.ResetCamera(); IsDirty = true; var camera = CameraOrtho; if (camera == null) { Zoom = 1f; } else { Zoom = Math.Min(Width / camera.Width, Height / camera.Height); } }