0

hi guys this code is not working what i should do ?I want to receive from intent a string but it is not print in text view ?

text = FindViewById<TextView>(Resource.Id.textView2); string extraData = Intent.GetStringExtra("link"); text.Text = extraData.ToString();

2nd Jan 2019, 12:13 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
1 ответ
0
Ive messed with Xamarin for a few weeks and never encountered code that looks like this. Maybe this is platform specific code? Xamarin heavily uses the MVVM (Model, View, View-Model) design pattern and you’re meant to fully immerse yourself in the MVVM headspace. It’s very confusing at first but very natural once you practice. Your form data should be dynamically bound to data in your class without any manual callback intervention. I recommend making a new Xamarin.Forms project and select one of the templates provided. Really pay attention to how they structure the data pipeline for the Item object. Like I said it is very confusing at first—its the Name of the Game when it comes to Xamarin. cheers!
3rd Jan 2019, 4:20 AM
Sean Patrick Franklin
Sean Patrick Franklin - avatar