It sounds like you are running across a bug. The only solution that has actually worked for me is to subclass EntryElement
, and call the FetchValue();
method in the constructor. Here is an example:
public SAEntryElement (string caption, string placeholder, string value) : base(caption, placeholder, value)
{
// HACK: A workaround in an attempt to stop the bug where the value field would be empty sometimes
FetchValue();
}
I have not been able to make a reliable test case to put on Xamarin's bugzilla, and I didnt have time to fight it any longer. Since I have implemented this workaround, the problem is gone on both the simulator and device for a few months now. Also note there is a similar symptom for a known bug related to empty strings as Captions (seperate problem).