Create new file pair
Right click the .xaml file and select copy
Select the project > Right click > Paste
You will now have a duplicate of the page and its .cs source code file with ” – Copy.xaml” as its name.
Right click the .xaml file and select Rename to rename both the files for the new page.
Update page code
Renaming the file pair won’t have caused the files class to have been renamed, so view the code.
Use find and replace to rename the class (probably 2 in 2 places)
Update xaml
Update the x:Class= class name
If it doesn’t work!
Look in the drop down of the original .xaml file and see if the copy of the .cs file is in there – likely is. Delete them both and start over. This time copy both files and rename them in the file manager. Take care when renaming with the .cs file – its MyFileName.xaml.cs
Repeat the changes needed as above in the files.
Now in Visual Studio use Add > Existing item > Select both the files.