-
Hi Rocky Since moving over from 4.3 to 4.5 I'm experiencing a strange issue with the Xaml ViewModelBase when calling BeginSave() and the DataPortal throws an exception. BeginSave works just fine when there is no exception on the server side data portal, however what I'm observing is that if the...
-
I use MVVM when editing a child object from a list. My view model follows the same patterns as Rocky has suggested inheriting the Csla.Xaml.ViewModel class. I pass in both the child object and the root object into the constructor. Within the view model constructor I do a BeginEdit on the root and set...
-
Yes, Rocky. I am starting another asynchronous operation in OnRefreshed overload method to fetch look up data and other general setting. So I am setting IsBusy property true in OnRefreshed method. But it set false when OnRefreshed call completed. Is there any way to set Isbusy property? Thanks.
-
Hi, I am using silverlight CSLA ViewModel. I am facing issue when set IsBusy property after OnRefreshed. I have set IsBusy property to true in override OnRefreshed method. It does not set. Then i have keep log _PropertyChanged event and i found that after completion of override OnRefreshed method, IsBusy...
-
In the ProjectEdit user control in the new ProjectTracker example, the CollectionViewSource named "projectGetterViewSource" has no source defined for it. On page 102 of the e-book, it states that "the first resource will contain the root viewmodel for the view." Here is the xaml line...
-
There are two reasons for being a DependencyObject (rather than a simple class implementing INotifyPropertyChanged): You can write code in the viewmodel to detect if you are in design mode You can bind to the Model property to create cascading (parent-child) viewmodels The second one is the primary driver...
-
Hi, I am using CSLA 4.1.0 for a Silverlight app. I recently experienced a problem where my ClientContext was being randomly cleared. After a lot of digging I have traced the source of the problem (I hope). It is because I am refreshing several ViewModel objects simultaneously. I am using the MVVM pattern...
-
when we do a BeginRefresh("StaticFindMethod") it always work mulit times but not the BeginRefresh("StaticUpdateMethod") public static void StaticUpdateMethod(ClosingRegisterER model, EventHandler<DataPortalResult<ClosingRegisterER>> callback) { var dp = new DataPortal<ClosingRegisterER>...
-
If invoke the method save of ViewMode<T>, the UI will rebind to the BO. if the T is BLB , i don't want the user to find the new or just edited row after click the save button. but i override the method Save as below: public override void Save(object sender, ExecuteEventArgs e) { Model.ApplyEdit...
-
Yeah, with the sync methods we were able to accept a lambda expression, and so the factory method can be passed as a parameter. The async factory methods are complex, because they require a callback parameter that includes a double-indirected generic type. If I remember correctly, you can still use a...