Single-Select Checkbox group in Monotouch.Dialog -
i using code set checkbox grouping in monotouch table , update values based on items checked:
var applescheck = new checkboxelement ("apples", false, "purchase"); var orangescheck = new checkboxelement ("oranges", false, "purchase"); var purchases = new section () { applescheck, orangescheck }; applescheck.tapped += () => { orangescheck.value = false; }; orangescheck.tapped += () => { applescheck.value = false; };
however, although update checkbox item's value, checkbox appears still stays there when items value false. there way update well?
change events following
applescheck.tapped += () => { orangescheck.value = false; orangescheck.getactivecell().accessory = uitableviewcellaccessory.none; }; orangescheck.tapped += () => { applescheck.value = false; applescheck.getactivecell().accessory = uitableviewcellaccessory.none; };
the reason checkboxelement.value field, setting has no side effect. create alter need uitableviewcell associated element , apply alter there.
monotouch monotouch.dialog
No comments:
Post a Comment