Hm, would this cause the mess?

From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Tim Kelly
Sent: Dienstag, 20. Dezember 2011 00:21
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Redraw/refresh problem

Might you be missing the scroll control on your interface?

________________________________
From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Christian Weyer
Sent: Monday, December 19, 2011 6:00 PM
To: Monodroid@lists.ximian.com
Subject: [mono-android] Redraw/refresh problem

Hi all,

I have code like this (using Monodroid.Dialog from 
https://github.com/kevinmcmahon/MonoDroid.Dialog):

private void RegisterMessagesHandler()
{
    Task.Factory.StartNew(() =>
    {
        while (true)
        {
            try
            {

                var message = broker.ReceiveAndDeleteMessage(topicName + 
"/Subscriptions/" + subscriptionName);

                if (!String.IsNullOrWhiteSpace(message))
                {
                    RunOnUiThread(delegate
                    {
                        messages.Elements.Add(new StringElement(message));
                        da.NotifyDataSetChanged();
                    });
                }

            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
    });
}

Everything seems to work fine. But after three and more entries the list gets 
messed up (screenshot):

[cid:image001.jpg@01CCBEAE.B892B0F0]

Any idea?

Thanks,
-Christian

________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2012.0.1890 / Virus Database: 2108/4690 - Release Date: 12/19/11

<<inline: image001.jpg>>

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to