As a reminder – that’s how the EditProductPage looks:

First of all we need a view model class. Create a class named EditProductPageVM, and derive it from the class PageVM. Add a constructor with parameters of type ISystemConnector and PageFrameVM and and pass the parameters to the base class constructor:

Create a new RelayCommand named ShowEditProductPageCommand in MainMenuPageVM:

Create a new EditProductPageVM object in ExecuteShowEditProductPageCommand() and assign it to the CurrentPage property of the page frame object:

Bind to the new command in MainMenuPage.xaml:

We finally need a data template for the page itself in App.xaml:

If you run the application, the page should display now.