Forum Xamarin.Forms

MVVM - SetBinding for Picker

reconrecon USMember ✭✭

How do you set the binding for a picker?

For an Entry I have.

var Password = new Entry { Text = string.Empty, TextColor = Color.White, BackgroundColor = Color.Blue, HorizontalOptions = LayoutOptions.FillAndExpand }; Password.SetBinding(Entry.TextProperty, "Password");

How would you set it for a Picker?

Picker picker = new Picker { Title = "XML Settings", BackgroundColor = Color.Blue, VerticalOptions = LayoutOptions.FillAndExpand }; picker.SetBinding();

Best Answer


Sign In or Register to comment.