Hi Abdullah,
Here’s a Sandcastle example for setting up a base layer picker. Hope that helps.
Thanks!
Gabby