WPF + Csla 4 + MVVM

WPF + Csla 4 + MVVM

Old forum URL: forums.lhotka.net/forums/t/12078.aspx

st3fanus posted on Thursday, July 18, 2013


I have a view which is it's datacontext bounded to a viewmodel from viewmodellocator property, like :

public MyViewModel


      get {  return .....  }


BUT the problem is this property is called twice when the view is display.

After experiment I found that because MyViewModel inherit from Csla.Xaml.ViewModelBase<T>

If i remove that inheritance MyViewModel property is called once

Currently I set View's datacontext binding mode = OneTime so that property is called once.

BUT this is not a scenario i want,

Could some one explained this ? or any suggestions i welcome, I think there is something I'm missing

thanks a lot







Copyright (c) Marimer LLC