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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:26:35+00:00 2026-05-30T01:26:35+00:00

I am new to MonoTouch and thus MonoTouch.Dialog . Using the Elements API, I’ve

  • 0

I am new to MonoTouch and thus MonoTouch.Dialog. Using the Elements API, I’ve created a simple view with two buttons, “Accounts” and “Contacts”.

public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
    _window = new UIWindow(UIScreen.MainScreen.Bounds);

    _rootElement = new RootElement("Sample")
    { 
        new Section()
        {
            new StringElement ("Accounts", delegate { ElementTapped(); }),
        },
        new Section()
        {
            new StringElement ("Contacts", delegate { ElementTapped(); }),
        }
    };

    _rootVC = new DialogViewController(_rootElement);
    _nav = new UINavigationController(_rootVC);
    _window.RootViewController = _nav;

    _window.MakeKeyAndVisible ();

    return true;
}

Once I tap on either button, I want to bring up a new view to search with. I know I have to create a new DialogViewController with EnableSearch set to true, but how do I then add this to my NavigationController from within the delegate?

Thank you.

  • 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-30T01:26:37+00:00Added an answer on May 30, 2026 at 1:26 am

    For “Accounts” and “Contacts” use a new “RootElement” that you have configured to create your nested DialogViewController on demand:

     new RootElement ("Accounts", x => {
         return new DialogViewController (....) {
              EnableSearch = true
         }
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the MonoTouch.Dialog reflection API to create a new DialogViewController: var dashBoard =
Running on iPad. I'm presenting a view controller modally. It is using MonoTouch.Dialog to
I am rather new with MonoTouch and noticed the MonoTouch Dialog api which is
I just want to override the Selected method from MonoTouch.Dialog. Simple as that I
New to MonoTouch and MonoTouch.Dialog, but I'm sure it's possible to create a tab
I'm quite new at using Monotouch and I want to make an app that
I Created a monotouch project, add add new files: images/abcd.png(build action:content) into my project.
I'm using MonoTouch. When I push a new controller onto the stack of a
Using a UISplitViewController with MonoTouch.Dialog (DialogViewController) I am having issues when using the back
New to javascript/jquery and having a hard time with using this or $(this) to

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.