LockCenter not working

  1. Subtract one from the Enum.RenderPriority.Camera.Value.
  2. That MouseBehavior will not actually lock the mouse. You need to use LockCurrentPosition.