Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

MVVM Jagged ListView Design

$
0
0

Hi All,

I am building my first MVVM project with Xamarin.Forms and all is going very well so far.

The main element of the project is a questionnaire.
The questions are multiple choice but each question has a different number of answers.
I want each possible answer to be a button.

So for example

question 1 has 4 buttons for each possible answer and

question 2 has 3 buttons for each possible answer.

I am thinking of creating a top level ListView that would contain a set of ListViews - one for each question and its possible answers.
However this feels as though I am going end up with a seperate ViewModel for each question and its possible answers.

Can I have people's thoughts on the best way to go with this?

Has anyone got or seen a good example I could look at ?

Thanks in advance.

Rob


Viewing all articles
Browse latest Browse all 58056

Trending Articles