I'm create project using Josh Smith THE MODEL-VIEW-VIEWMODEL (MVVM) DESIGN PATTER FOR WPF
But has one problem. Same workspace shown same operation. My VIEW
contains tabcontrol. after creating 2 or more same workspace,when i changing selected index for tabcontrol from any workspace, other same workspace tabcontrol shown same result.
I'm tested on the Josh smith sample project. But same as my project. If you want to show. download Josh smith code from here and on the MainWindowViewModel.cs changing following code from
void ShowAllCustomers()
{
AllCustomersViewModel workspace = null;
this.Workspaces.FirstOrDefault(vm => vm is AllCustomersViewModel)
as AllCustomersViewModel;
if (workspace == null)
{
workspace = new AllCustomersViewModel(_customerRepository);
this.Workspaces.Add(workspace);
}
this.SetActiveWorkspace(workspace);
}
To
void ShowAllCustomers()
{
AllCustomersViewModel workspace = null;
workspace = new AllCustomersViewModel(_customerRepository);
this.Workspaces.Add(workspace);
this.SetActiveWorkspace(workspace);
}
Then Run Code and Open 2 or more All Customer view
and changing List view Column order. All opened all customer view
shown same result
How to fix this problem