2

I want to display two listviews in one page like this 2 listViews in one Page

Erik Hakobyan
  • 1,024
  • 9
  • 16

2 Answers2

4

Having a ListView inside a ScrollView is not supported an will leak memory, you can use a single ListView but with different DataTemplate with a DataTemplateSelector and organize your Data.

What I can tell is that in your case you don't need a ListView since there are not a lot of items, maybe using a Grid + ScrollView will get you the job done!

Ingenator
  • 222
  • 3
  • 9
-1

Use Layouts to arrange multiple controls on a page. The simplest approach would be with a StackLayout, but you could also use a Grid or any of the other Layout controls.

StackLayout stack = new StackLayout();

stack.Children.Add(myFirstList);
stack.Children.Add(mySecondList);
Jason
  • 86,222
  • 15
  • 131
  • 146