How to customize Xamarin.Forms app? -
how can customize appearence of xamarin.forms components? want each button have same image, instance. or systems share same login screen same background image. know can adding 1 specific screen each platform project. want able customize component itself. example: buttons have same background image no matter platform running.
i've read these:
http://developer.xamarin.com/guides/cross-platform/xamarin-forms/custom-renderer/
http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/styles/
the promising 1 seems last one. custom renderer way accomplish this? can't add image @ shared project , automagicaly works platforms?
thanks.
it's not absolutely clear, exactly want reach... try answer you.
if use shared project (based on template "blank app (xamarin.forms shared)", can use same page / page-definition in all of platforms.
can add - e.g. login-form in shared-folder , call code (e.g. page in shared folder).
if want create your own controls, can create "user-controls" , use everywhere want (what recommend every user).
this, create own class (e.g. entry , label), implement events , instantiate want use it. e.g.
var oefirma = new entryerfassung(cdefaulttext: "firma", imaximallaenge: 45);
where oefirma name of object-instance on page (to access it), entryerfassung own class (that contains description-label, entry error-label , more) , cdefaulttext parameter, overtakes , set default-text entry , imaximalaenge further parameter overtaken whereby my class take care, not more 45 characters accepted entry).
i have e.g. created class description-label, delete-button, entry , error-label ad use on data-entry-forms.
if want change look-and-feel of specific control specific platform, can create "custom-render" (i have done e.g. change font-size edit specific ios, font-sinze cannot set in xf-entry control).
hope answers question...
Comments
Post a Comment