I want to build my own set of objects to be used as a base line for a project. I created my Main window and pages that navigate through. However I couldn't find a way to implement a base class where I'll set all the objects that I will use in multiple pages such as the filePath.
here's an example on what I tried to do:
.XAML:
<base: PageBase x:Class="ProjectSABX.Pages.Home"
  <PageBase.Resources>
   ...
  </PageBase.Resources>
  <Grid>
   ...
  </Grid>
</base: PageBase>
.CS:
Home.cs:
namespace ProjectSABX
{
  public partial class Home : PageBase
    {
       Public Home ()
         {
           InitializeComponent();
         }
    }
}
PageBase.cs:
namespace ProjectSABX
{
  public class PageBase : Page
    {
      public string filePath;
        ...
    }
}
When I do so I get this error message:
Partial declarations of 'Home' must not specify different base classes