xamarin.ios - Monotouch-Dialog ReloadData does not reloads data? -


i want use monotouch dialog not editable data display numeric values. calling dialogviewcontroller.reloaddata not updates data binded object.

 class accountformmodel {         [section("account data", "")]          [caption("balance")]         public string balance; } ... private void initcomponents() {             accountformmodel = new accountformmodel();             accountformmodel.balance = "testtesttest";             bc = new bindingcontext(this, accountformmodel, "accountdata");             dialogviewcontroller = new dialogviewcontroller(bc.root);             dialogviewcontroller.autorotate = true; }  private void refreshdata() {             string b = somedatasource.account.balance.tostring("n4");             accountformmodel.balance = "$" + b;             dialogviewcontroller.reloaddata(); } 

debugging shows accountformmodel.balance in refreshdata method set right value, nothing changes on form in simulator (stays testtesttest). i'm doing wrong?

dialogviewcontroller when using reflection binding once initially, , when fetchdata() data transferred class.

what happens bindingcontext create model data (balance in case) making copy of data @ point. when call reloaddata() reloading data copy, , why not see change. although changed have method on bindingcontex repopulate data, not case.

the reflection api monotouch.dialog limited, advise non-trivial, use elements api. of samples in monotouch.dialog use api, gives full control of dialog.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -