Closed tfreitasleal closed 9 years ago
iirc, we chose to make the default false on mobile devices to avoid consuming memory.
When this value is set to true the viewmodel will automatically call BeginEdit on the object, causing the object graph to be serialized into a memory copy. On a full-blown computer this is typically a non-issue, but on a mobile device it consumes power and memory that might be scarce.
So the thought was that the developer should opt-in to such a cost rather than having it be the default.
Source from 4.5.x branch, on ViewModelBase.cs we can read
if ANDROID || IOS
else
endif
On ANDROID and IOS shouldn't ManageObjectLifetimeProperty default value be "true"?
if ANDROID || IOS
else
....
Rocky,
Although I have a signed a contribution agreement, I don't think I should commit these changes since I have no way to test them (I not running Xamarin). BTW I'm porting this class to WindowsForms and found interesting to see what was done on another non DP platform.