Before Minecraft will turn on cheats, it will warn you that Xbox Live achievements cannot be earned in this world.
This option looks like a switch and the switch should be set to the right to turn Cheats on. To turn on cheats in the Windows 10 Edition of Minecraft, you need to create a new world and click on the Cheats option.