xamarin.forms - Bind Custom Object Type in Xamarin Forms -
i'm working xamarin forms @ moment , i'm impressed mvvm concept , try use bindings recommended. if have textfield want display text in bind textfield string. thing though bind custom object-type instead. let's represents order id. order id displayed string of special format. let's 10 characters, 2 first country code, rest individual. nice have contained in object can validate self. there way can bind custom object? how control how represented in view? should use tostring()? bit unflexible since perhaps display bit differently in different context.
any feedback helpful(except validation in order, know how that).
have tried binding text field custom object's property? such <entry text="{binding customobject.id}"/>
or label.setbinding(label.textproperty, "customobject.id");
Comments
Post a Comment