private void Trackball_UserMovedCamera(object sender, UserMovedCameraArgs e) { if (_selectedBean != null) { // If this doesn't change, then the world update will snap the camera back _selectedBean.CameraOffset = _camera.Position - _selectedBean.Bean.PositionWorld; } }
protected virtual void OnUserMovedCamera(UserMovedCameraArgs e) { if (this.UserMovedCamera != null) { this.UserMovedCamera(this, e); } }
private void Trackball_UserMovedCamera(object sender, UserMovedCameraArgs e) { try { if (_dragHitShapeType == DragHitShapeType.Plane_Camera && e.IsRotate) { ChangeDragHitShape(); } } catch (Exception ex) { MessageBox.Show(ex.ToString(), _msgboxCaption, MessageBoxButton.OK, MessageBoxImage.Error); } }