private void MainWindow_KeyDown(object sender, KeyEventArgs e) { WorldGrid.Focus(); if (e.Key == Key.Right) { Constants.CameraX += Constants.TILE_WIDTH; } if (e.Key == Key.Left) { Constants.CameraX -= Constants.TILE_WIDTH; } if (e.Key == Key.Up) { Constants.CameraY -= Constants.TILE_HEIGHT; } if (e.Key == Key.Down) { Constants.CameraY += Constants.TILE_HEIGHT; } WorldGrid.Children.Clear(); DrawGrid(); DrawWorld(); //throw new NotImplementedException(); }