Skip to content

Instantly share code, notes, and snippets.

@darbio
Created January 21, 2013 23:55
Show Gist options
  • Select an option

  • Save darbio/4590700 to your computer and use it in GitHub Desktop.

Select an option

Save darbio/4590700 to your computer and use it in GitHub Desktop.
using System;
using MonoTouch.Dialog;
using MonoTouch.UIKit;
using System.Collections.Generic;
using System.Linq;
namespace IQX.OneList.Mobile.iOS
{
public class ItemElementDialogViewController : DialogViewController
{
public ItemElementDialogViewController () : base (null)
{
}
RootElement CreateRoot ()
{
return new RootElement("Test") {
new Section () {
new RootElement ("Sub", a => {
return new ItemElementDialogViewController ();
}),
new StringElement ("Caption")
}
};
}
public override void LoadView ()
{
this.Root = CreateRoot ();
base.LoadView ();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment