2
我是MonoTouch和MonoTouch.Dialog的初學者。 我正在嘗試使用MT對話框,但我無法理解如何獲取數據。MonoTouch.Dialog如何從對話框中獲取數據
比方說,我有事件類:
class Event {
bool type {get;set;}
string name {get;set;}
}
而且我想用這個對話框定義編輯:
return new RootElement ("Event Form") {
// string element
new Section ("Information"){
new EntryElement ("Name", "Name of event", ""),
new RootElement ("Type", new RadioGroup (0)){
new Section(){
new RadioElement ("Concert"),
new RadioElement ("Movie"),
new RadioElement ("Exhibition"),
new RadioElement ("Sport")
}
}
},
我怎麼能傳遞數據和從這種形式? (使用低級API不反思其支持綁定)
,如果你有什麼渲染出數據庫中的元素,如http://stackoverflow.com/questions/14866188/monotouch-dialog-generate-from-db-and-retain-values? – BRogers 2013-02-14 01:09:30