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

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

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