Forum Xamarin.Android


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Xamarin Visual Studio with C# and AXML: What is the best way to link data to the User Interface?

rTechrTech HUMember

I'm creating a simple App in which some view elements are generated programmatically on runtime. I want some of the properties of these views to be bound to data (text for example), but I do not know how this is done in Android.

I'm familiar with WPF, where this is achieved with Data Binding, but this is not supported in Xamarin (unless I use something 3rd party like MVVMCross, which I'd rather avoid or an approach like THIS). So my qustion is: What is the best way to bind UI elements to data in Android? What is the common practise in, say, Android Studio, and how could I implement it in Xamarin with C#? I have something like THIS in mind, but this is Android Studio (I guess), so it won't work in Xamarin.

Sign In or Register to comment.