/// <summary> /// Initializes the control. /// </summary> protected override void Initialize() { Camera = new Camera(GraphicsDevice.Viewport.AspectRatio, new Vector3(0f, 500f, 50f), Vector3.Zero); _grid = new GridComponent(GraphicsDevice, 8); _controlAxis = new ControlAxis(GraphicsDevice); // Start the animation timer. timer = Stopwatch.StartNew(); // Hook the idle event to constantly redraw our animation. Application.Idle += delegate { Invalidate(); }; }