My Xamarin application has as one of its characteristics, creating forms based on an object.
I have had problems saving the data for this form. I have to go through the children of StackLayout then popular Dictionary<string, object>()
.
What I would like to do (and I believe to be the most correct way to do it) is to use Xamarin's databiding to bind the elements of the form with Dictionary<string, object>()
so that I do not need to go through the list of elements every time.
As the form is dynamically created, I would not do Biding over XAML, but rather at some point I create the view:
var entry = new
Keyboard = Keyboard.Numeric,
HorizontalOptions = LayoutOptions.Fill,
VerticalOptions = LayoutOptions.CenterAndExpand
};
I just do not know if I add the Dictionary I have in my ViewModel.