Hey everyone,

I'm having a bit of trouble with a character counter using MT.D

I have a MultilineEntryElement called *noteElement*, and above it, I have a
string element called *lengthElement* that keeps track of characters in the
multiline. 

                        //Event that triggers when the noteElement is changed
                        noteElement.Changed += delegate 
                        {
                                maxChars = 140 - noteElement.Value.Length;
                                lengthElement.Value = maxChars.ToString();
                                
                                if (maxChars <= 0)
                                {
                                        newAlert.Show ();
                                        string maxNote = 
noteElement.Value.Substring(0, 140);
                                        noteElement.Value = maxNote;
                                        maxChars = 0;
                                }
                                

                                //Refreshes the lengthElement to show character 
countdown
                                
                                Root.Reload(lengthElement,
UITableViewRowAnimation.None);
                                
                        };

Despite setting UITableViewRowAnimation to None, the row still animates with
every reload. Does anyone have any idea why and how I can stop this from
happening?

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Character-Counter-showing-animation-even-when-set-to-none-tp4566274p4566274.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to