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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:38:14+00:00 2026-06-14T21:38:14+00:00

I have a rootelement created from dynamic object. I want to get the object

  • 0

I have a rootelement created from dynamic object. I want to get the object Id when I tapped an element:

var section = new Section("","Select a complex and then a property");
var root = new RootElement("Complexes"){section};

foreach(Complex complex in complexes){

    var line = new RootElement(complex.Name);

    foreach(Property property in complex.Properties){

        line.Add(new Section(property.Name,"Select the property to work"){

            new StringElement(property.Description, delegate {

                // NEED HELP HERE!!! here I want to get property.Id

            })
        });
    }
    section.Add(line);
}

this.Root = root;

Any clue? Thanks a lot.

  • 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-14T21:38:15+00:00Added an answer on June 14, 2026 at 9:38 pm

    Copy property.Id in local variable and use in delegate

    var line = new RootElement(complex.Name);
    
    foreach(Property property in complex.Properties){
    
        var propertyId = property.Id;
    
        line.Add(new Section(property.Name,"Select the property to work"){
    
            new StringElement(property.Description, delegate {
    
                (new UIAlertView("title", "Id - " + propertyId, null, "Ok")).Show();
    
            })
        });
    }
    section.Add(line);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a RadioGroup I created: Root = new RootElement (Club 1) { new
If I have the following xml: XDocument xDocument = new XDocument( new XElement(RootElement, new
I have a RootElement with Sections. One section has RadioElements. How do I change
As per the instructions, I downloaded ABS 4.1, created a new project from existing
I have created a dynamic table with stringbuilder. And i got a table with
have written this little class, which generates a UUID every time an object of
I recently created a post about flattening an XML structure so every element and
Hey, I have 2 classes. When I'm trying to create an XML structure from
I have created an XML file in my solution path. My solution has multiple
I have generated a XML file automatically from the below code. if (isset($_POST[song])&& $_POST['song']

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.