i have used below code generate entry control dynamically.
entry myentry = new entry(); myentry.placeholder = "my entry text here"; myentry.text = "my entry text";`
now, want fetch it's value code behind, how can achieve that.
i have found below way find control name(x:name) unable set name(x:name) property of entry control when add code behind.
entry getmyentrytext = this.findbyname<entry>("control name");
so there way can achieve this?
i can see still bigenner , have lot learn , advice watch more tutorials , read more xamarin.forms .
the first peice of code written in code behind, term code behind refers code decides how page , not written in xaml abd resides in partial class that. if not have xaml file not have code behind.
the second peice of code not xamarin.forms.
entry getmyentrytext = this.findbyname<entry>("control name");
it xamarin.android if have layout written in axml. can fitch control way
so need put more effort , spend more time answers.
Comments
Post a Comment