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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:28:40+00:00 2026-06-15T08:28:40+00:00

I have the following code: Section _section = new Section (Test); foreach (ExampleData data

  • 0

I have the following code:

Section _section = new Section ("Test");


foreach (ExampleData data in Example.data) {

     MessageElement Item = new MessageElement (){

    Sender = data.Name,
    Subject = data.Value,
    Body = data.Description,
    Date = data.Modified
         } ;

          _section.Add(Item);


            var root = new RootElement("Item Expanded"){

                new Section ("test2"){
                    new StringElement("Field Name", data.FieldName),
                    new StringElement("Value", data.Value),
                    new StringElement("Description", data.Description)
                }


            } ;
            _section.Add(root);

        } ;



        var _rootElement = new RootElement ("Items") {
            _section
        } ;

I would like this to work in such a way that when a Message Element is tapped it shows the section with (“test2”) that has the same data (e.g. the data was added during the same run of the loop.) I realize this will not happen currently, as it seems the Message Element
requires an Action delegate to do anything on a tap event, plus I’m adding everything to the same section. However, is there any way to replicate the behavior of multiple nested root elements and sections with a Message Element? If I create new pages/screens and try to transition that way, it rests the navigation controller and I lose the use of the back button, even if “push” is set to true.

  • 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-06-15T08:28:42+00:00Added an answer on June 15, 2026 at 8:28 am

    Not sure what you want exactly. Replace your “Item Expanded” root element code with this to push a dialog viewcontoller on the navigation stack with a backbutton. Ofcourse your DialogViewcontroller should be in a UINavigation controller in the first place for this to work

            Item.Tapped += delegate(DialogViewController arg1, UITableView arg2, NSIndexPath arg3) 
            {
                var newDialogVC = new DialogViewController(
                    UITableViewStyle.Grouped,
                    new RootElement("Item Expanded")
                    {
                        new Section ("test2"){
                        new StringElement("Field Name", "test"),
                        new StringElement("Value", "test"),
                        new StringElement("Description", "test")
                    }
                                                    }
                    , true);
    
                arg1.NavigationController.PushViewController(newDialogVC,true);
            };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code var section = new CustomConfigurationSection(); section.SectionInformation.Type = System.Configuration.NameValueFileSectionHandler; section.SectionInformation.SetRawXml(sectionXml);
I have the following code example to demonstrate a simple MonoTouch.Dialog table using MessageElement
I have the following section of code that acts on values in <Test></Test> nodes
I have a program that has the following code: foreach (string section in DataAccessLayer.AcceptedSections)
I have the following section of code in an app that I am writing:
I have following code for inserting data into database using PDO. It inserts data
I have the following code in an MVC 3 view <% foreach (var stockItem
I have the following section of code. What method is supposed to be in
I have the following test code (based on standard monodroid HelloWorld) namespace TestGREF {
i have the following code section in my java class. if(exportTo.equals(pdf)) { response.setHeader(Content-disposition, attachment;

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.