I have two projects in my hands that are used in different scenarios.
There are many XAML pages in these two projects, and some of page in one project is copied from another project(old version) and modified namespace, added some new things.
Now I am responsible for both projects, but I find it very difficult to maintain the both projects, so I am trying to refactor.
What can be confirmed is:
Part of the pages is copied from the old project code (namespace modified, but the version is backward).
Part of the pages was copied in recently, but there are some changes.
Once I need to fix or add something, I have to modify these two projects, and also need to pay attention to the problems caused by the difference in code between the two projects, I can't copy file simlpely. Which is too painful.
What I want to do is to extract the same xaml and backcode part between the two projects for unified maintenance, but at the same time compatible with the difference part (such as different columns of the DataGrid, different query, different color theme, etc.)
What should I do? Any suggestion?