You may find it a little tricky to leverage Xbox Game Bar to record screens on Windows 10. Then please follow the steps below to capture all your footage with this free application easily:
Step 1: Open the video or game you want to capture;
Step 2: Press on the Windows logo key + G to enable the screen recorder for Windows 10;
Step 3: Click on the Capture button and tap Start recording (the third icon from the left) in the Capture window.
In 3 seconds, it starts screen recording in Windows 10 and you can capture your screen in the background.