Thank you JESUS for His help. So, the problem is identified.
In my code, changing the Picker selected value modifies the other picker. But,
OnItemsSourceChanged
is now getting called only when a binded model of list type property (PickerOptionsList
) is changed as follows :
(1) PickerOptionsList = null;
(2) PickerOptionsList = new List<OptionsModel>();
And due to some changes/commits in one of the latest version (after 3.4.0.1029999), OnItemsSourceChanged
is not getting called when elements are added to the the ItemSource
List type model property(E.g. PickerOptionsList
) using Add()
method. For e.g.
PickerOptionsList.Add(...);
For now, as a workaround I'm adding those values like the example below in some areas of code:
PickerOptionsList = new List<OptionsModel>() {
new Option(){ Id = 1, Name="A"},
new Option(){ Id = 2, Name="B"},
new Option(){ Id = 3, Name="C"},
new Option(){ Id = 4, Name="D"}
};
I'm working in the code areas/scenarios where the element is added based on a condition..
There is no problem on initial binding of the List (PickerOptionsList). But it happens when it is later changed (added) with elements (more options)..
NOTE : In my code, during initial binding and on the change that happens later, the PickerOptionsList (ItemSource) is set to null, instantiated and then elements are added using Add()