0

I'm trying to figure out how to bind a ListView to two or more objects in Xamarin forms...

I want to keep the objects separate because they both correspond to different tables in a database. Is it wrong of me to want to keep them separate?

RobotMan
  • 9
  • 3
  • Hi, please show some code. Furthermore, please try to google a bit about the MVVM pattern. For example: https://stackoverflow.com/questions/23648832/viewmodels-in-mvc-mvvm-seperation-of-layers-best-practices/23649191#23649191 – Stefan Aug 21 '18 at 08:29
  • you cannot do this you need to create a custom class and have all the data there – FreakyAli Aug 21 '18 at 10:00
  • By 2 objects you mean to different List of items or 2 different properties? – Woj Aug 21 '18 at 10:23
  • @Woj I meant 2 different Lists of items – RobotMan Aug 21 '18 at 13:55
  • @G.hakim Hmmm, That's what I thought I might need to do... I'll look in MVVM pettern – RobotMan Aug 21 '18 at 13:56
  • @RobotMan do you want those 2 lists to display in the same time or one or the other? – Woj Aug 21 '18 at 14:09
  • @Woj I wanted to be able to bind a listView to elements from a choice of two or more lists... It sounds as though I need to creates a new list with both sets of data inside – RobotMan Aug 21 '18 at 15:04

0 Answers0