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

Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *