I have two list views contained in a scroll view:
class StadanPage : ContentPage
{
public StadanPage ()
{
Title = "Staðan";
Icon = "home.png";
var accountListView = new AccountListView ();
var billListView = new BillListView ();
var listLayout = new StackLayout {
Children = {
accountListView,
billListView,
},
Padding = new Thickness (10, 10, 10, 10),
Spacing = 10,
VerticalOptions = LayoutOptions.FillAndExpand,
BackgroundColor = Colors.Background,
};
var scrollView = new ScrollView {
BackgroundColor = listLayout.BackgroundColor,
Content = listLayout,
};
Content = scrollView;
}
}
Both accountListView and billListView allow selecting their cells and on iPhone and Anroid it works as intended.
On WinPhone, I can only select the cells in the first listView (accountListView) inside the scroll view. If I change the order of the list views, i.e.
var listLayout = new StackLayout {
Children = {
billListView,
accountListView,
},
the same holds, i.e. I can select the cells in the billListView but not in the accountListView.
The above behaviour does not change if I remove the scroll view.
A bug?