Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7624115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:52:43+00:00 2026-05-31T04:52:43+00:00

Only in the System.Console do I get the result, it print the number of

  • 0

Only in the System.Console do I get the result, it print the number of characters that are left, and it update it

So whats wrong, how do i update it in the Element?

Hope you guys can help me with this.

Console:

Characters typed(left): in Value it should write the number of characters that are left.
enter image description here

     var root = new RootElement ("Send Message");

        var messageElement = new MultilineEntryElement ("", "0123456789") 
        {
            Editable = true,
            Height = 120
        };
        var messageSection = new Section ();

        int leangtOfChar = 200 - messageElement.Value.Length;




        var lengthElement = new StringElement ("characters typed:", leangtOfChar.ToString());

        messageElement.Changed += delegate {

            System.Console.WriteLine (leangtOfChar.ToString ());

            //lengthElement.Value = (leangtOfChar.ToString());

        };



        root.Add(messageSection);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:52:44+00:00Added an answer on May 31, 2026 at 4:52 am

    The problem is that when you update a normal StringElement it doesn’t automatically update the attached cell.

    To force an update for just that cell, I would recommend either:

    • calling root.Reload(lengthElement, UITableViewRowAnimation.Fade) after you change the value
    • or using a custom element/cell type instead of StringElement – basically you could model this on the simple code in BooleanElement – but use a UILabel as the accessory instead of a UISwitch.

    If you wanted to go further – to actually allow StringElement to be updated without a reload – then you can do this by modifying the Element class to track whether a cell instance is currently attached. I’ve done exactly that in a databinding branch of monotouch.dialog – https://github.com/slodge/MvvmCross/blob/master/Cirrious/Cirrious.MvvmCross.Dialog/Dialog/Elements/Element.cs – but this is almost certainly overkill for what you are trying to do right now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume a system that contains only the basic Perl installation without any extra CPAN
I'm trying to create a basic system that will allow only specific users to
Is there a control like System.Windows.Controls.GroupBox that can hide its contents and show only
When I try to use java.lang.System.console(), I get a null pointer. I can still
I want to get an element of a HashSet only if it contains a
I'm curious why only some System.Web.UI.WebControl controls implement certain interfaces when they have the
System.BitArray only implements the non-generic IEnumerable, which returns an Object for the IEnumerator.Current property.
How does one do this? The SYSCOLUMNS system table only has columns for tables.
Alright, on a true false question: a)The actors of a system are only represented
The only distributed revision control system I've used on my projects is bazaar. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.