This functionality isn't supported in Adobe XD right now, but it's something we're looking at the the future! You can upvote to get more information (and tell us you want it) here: Sticky (Fixed) elements in scrolling artboards (header, nav bar, etc.) – Adobe XD Feedback : Feature Requests & Bugs
I'm considering using invision. This is huge for prototyping new functionality.