public LabelListScreen(IList<string> labels)
: base(UITableViewStyle.Grouped, null)
{
// Navigation
NavigationItem.LeftBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Cancel, (sender, args) =>
{
NavigationController.DismissViewController(true, null);
});
NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Done, DoneButtonClicked);
Root = new RootElement("");
var labelSection = new Section();
Root.Add(labelSection);
foreach (var label in labels)
{
var element = new StringElement(label);
element.Tapped += () => {};
labelSection.Add(element);
}
var customSection = new Section();
Root.Add(customSection);
var customElement = new StringElement("Add Custom Label");
customElement.Tapped += () => {};
customSection.Add(customElement);
}