private Page _displayPage;
public Page DisplayPage
{
get
{
return _displayPage;
}
set
{
if (Equals(_displayPage, value))
{
return;
}
this._displayPage = value;
OnPropertyChanged("DisplayPage");
}
}
private RelayCommand _operatorViewMenuCommand;
public ICommand ViewMenuCommand
{
get
{
if (_operatorViewMenuCommand == null)
{
_operatorViewMenuCommand = new RelayCommand(param => this.ProcessNavRequest(DisplayPage));
}
return _operatorViewMenuCommand;
}
}
public void ProcessNavRequest(Page page)
{
this.DisplayPage = page;
}
I call from myCommand
StartScreenViewModel.ProcessNavRequest(new ImportForm());
But it does not remember the navigation