[Solved] Creating abstract ViewModels wpf


Ok, I found the glitch.

Int the MainViewModel class, the TestViewModel property should be changed from:

public IViewModel TestViewModel
{
    get { return m_testViewModel; }
    set
    {
        m_testViewModel = value;
        OnPropertyChanged("NewViewModel");
    }
}

To:

public IViewModel TestViewModel
{
    get { return m_testViewModel; }
    set
    {
        m_testViewModel = value;
        OnPropertyChanged("TestViewModel");
    }
}

solved Creating abstract ViewModels wpf