With a picker that is populated with options ( especially when from an async source), that has binding to a selected item, the picker seems to expect the variable to be an int, in which case the default selection would be
0, or the first item until during the insertion of the options the selected item is updated if one has an existing value.
Wanting to not have an item selected initially I've bound the selectedIndex to a
Nullable<int> - however I see visual studio shows an error:
Error Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
on the viewmodel line -1.
Is there a good way to deal with this that doesn't involve creating a 'blank' option?
(Or somehow only adding the binding from c# after the options have been retrieved in the viewmodel which seems a bit clunky perhaps?)