我正在尝试学习使用 MonoTouch。我基本上是在尝试创建类似于 iphone 内置的短信应用程序的东西。
我想要根元素中的编辑按钮和添加按钮。这可能吗?
我正在创建像这样的根元素
var root = new RootElement ("My Items");
Section section = new Section();
foreach (var item in GetData()) {
var element = new RootElement(item.ItemName,0,0) {
new Section(item.Description)
};
section.Add(element);
}
root.Add(section);
我需要做什么来添加 2 个按钮并加载不同的视图?