var section = new Section("My Section"); section.Add(new StringElement("Item 1")); section.Add(new StringElement("Item 2")); section.Add(new StringElement("Item 3")); var root = new RootElement("My Screen") { section }; var dialogViewController = new DialogViewController(root);
var section = new Section("My Section"); var customCell = new MyCustomCell(); section.Add(customCell); var root = new RootElement("My Screen") { section }; var dialogViewController = new DialogViewController(root);This code creates a section that displays a custom cell created by the `MyCustomCell` class. The cell is added to the section, which is added to a root element, and then used to create a dialog view controller. In both cases, the package library being used is likely to be `MonoTouch.Dialog`.