c# - MVVM combining several views -


i'm developing app in visual studio using xamarin , mvvm light. app have settings page (view) several main categories , when user clicks 1 of them want new view appear detailed settings specific category.

my question rather simple, after spending 2 hours on google i've given up. possible combine these detailed settings in 1 file/view, instead of having 1 view each , everyone, since give 6+ views settings.

i've read using listboxes, contentviews , observablecollection haven't understood how works.

for example: settings screen show list of categories such as: alert options, device options, configure status etc... each of these categories have own options such as: turn on/off sound, vibration, screen dimming. different kinds of alerts , on.. i'm wondering if can achieve without view each category.

of course can achieve in 1 view, it's how want design user interface of application.

it's decide. want show detailed options @ once, or have them show once category clicked. want work "accordion" type group once click 1 group, others collapse, etc.

on mobile phones best practice described, clicking on group of options loads new screen options. users can use button go previous screen, can see detailed options without additional clutter, it's pretty common , nice , clean.

i not sure why think having 6+ views settings somehow bad. should structure project appropriate folders easier organization.

even if wanted options on single screen, still advise split them different files easier maintenance , readability, put them inside 1 parent view layout components of type.

more files lot cleaner, better , more maintainable 1 giant file in it.

of course, there such thing many files, use common sense.

in example, see nothing wrong having folder inside views folder titled "settings" having separate appropriately named files each of sections.

if have idea of how else present information, please elaborate on can offer suggestions.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -