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 7560371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:53:11+00:00 2026-05-30T12:53:11+00:00

In an app I am building I use the following pattern: If the user

  • 0

In an app I am building I use the following pattern: If the user clicks on a hierarchical navigation element I open the next UIViewController immediately, and it takes care about loading its data itself and shows a loading spinner if it is going over the network.

Now most list views are created using MonoTouch. On one DialogViewController I have an issue with adding many element to the views RootElement after the screen has already been show.

At first the StringElements appear fine on screen, but if you scroll quickly up and down the text on each line becomes a block:

screenshot of the issue at hand

Code to reproduce the issue:

        var root = new RootElement("Root");
        var dvc = new DialogViewController(root) { AutoHideSearch = true, EnableSearch = true };

        nav.PushViewController(dvc, true);

        Task.Factory.StartNew(() => {
                Thread.Sleep(TimeSpan.FromSeconds(1));
            UIApplication.SharedApplication.InvokeOnMainThread(() => {
                var sec = new Section();

                for (int i = 0; i < 100; i++)
                {
                    var el = new StyledStringElement("Test", "Test", UITableViewCellStyle.Value1);
                    sec.Add(el);
                }

                root.Add(sec);
            });
        });

Interestingly only the string on the left looks like a block, while the one on the right is fine. On a side note, in their MWC (demo) app, Xamarin created a new RootElement to repopulate the twitter list as well.

  • 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-30T12:53:12+00:00Added an answer on May 30, 2026 at 12:53 pm

    There does not seem to be a reload of the data source called on the main thread to correctly render the new values:

    var dvc = new DialogViewController(new RootElement(""));
    _root = new UINavigationController();
    _root.PushViewController(dvc, true);
    _window.RootViewController = _root;
    
    Task.Factory.StartNew(() => {
        Thread.Sleep(TimeSpan.FromSeconds(1));
        var section = new Section("");
            foreach (var i in Enumerable.Range(1, 100)) {
                section.Add(new StyledStringElement(i.ToString(), "cell", UITableViewCellStyle.Value1));
            }
    
        dvc.Root.Add(section);
        BeginInvokeOnMainThread(() => {
            dvc.ReloadData();
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building an app with complex data which I use arrays for. Some
I'm building an app to store files on my s3 account. I use Rails
I´m building an asp.net app, which technology I should use to get AJAX capabilities?
I am building a news app for my website. I want to use a
I'm building an iPad app, and would like to use a tiled display with
I'm currently working on building a java web app. I've been looking to use
I've been following the rails edge guide in building a simple recipe app, and
I'm building the below example boost-consuming user-mode app with the WDK, but I'm getting
I'm building a Silverlight 4 app. I'm trying to use XElement to read XML.
I'm building a Rails app that uses Pusher to use web sockets to push

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.