C # Xamarin / Monotouch.Dialog - EntryElement element not displaying typed characters

I have a Monotouch.Dialog EntryElement .

Sometimes, when I start typing, nothing appears ...

The cursor is not displayed, and if I type, it cannot be seen, but it is stored in the EntryElement.Value property.

The problem seems only on the iPhone itself, but not on iOS Simulator . I am running iOS 6.3

Any ideas? This pretty much Monotouch for me if I can't have a consistent user interface.

+8
c # xamarin monotouch.dialog
source share
4 answers

In Xamarin , Error Tracking System Error 7398 is the situation you described.

But this is version 5.4 of iOS and on 5.2 it works fine.

Also Error 7116 describes the same problem, but this time it was a Xamarins error.

My suggestion for you is to post the error message as bugzilla.xamarin.com .

Try the above sample to correctly write the error report.

+2
source share

Just work on doing this work for me:

 //FIXME: this is a workaround about a bug relative to the position of TextBox element // https://bugzilla.xamarin.com/show_bug.cgi?id=7398 var tmp = new EntryElement ("a", "a", "a"); 

I added this code to the very first view in my application and the problem disappeared.

I hope this helps others.

0
source share

It looks like you are running by mistake. The only solution that actually worked for me is to subclass EntryElement and call the FetchValue(); method FetchValue(); 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 could not make a reliable test case to put on a Xamarin bugzilla, and I did not have time to fight it. Since I implemented this solution, the problem disappeared both on the simulator and on the device within a few months. Also note that there is a similar symptom for a known blank line error like Captions (separate issue).

0
source share

Using MikroDel's answer and comments in bugzilla for error 7398 , the problem for me was that the height of the EntryElement was 0.

By setting the desired value (greater than 0), the problem is resolved.

0
source share

All Articles