Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Native Data Binding to IOS Controls

$
0
0

Hi

I have a custom page renderer where I programmatically generate controls and add them to a UIView. My question is how do i go about binding the native ListEntry(subclass of UITextField) class to a c# viewmodel?

I'm guessing its the methods below that I need for the binding but would really appreciate any direction to how i do this?

if (control.controlType == "Dropdown")
            {

                ListEntry entry = new ListEntry(control);
                entry.BackgroundColor = UIColor.Blue;
                //entry.SetBinding()
                //entry.SetBindingContext()

                imageView.AddSubview(entry);
            }

            }

Thanks


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>