xamarin.forms - Can the TableView have multiple headers? -
xamarin.forms - Can the TableView have multiple headers? -
i've attached image. can tableview have multiple headers , grouped sub model?
my model construction looks this.
class="lang-csharp prettyprint-override">public class moduleviewmodel { public string title { get; set; } public ilist<mediaviewmodel> media { get; set; } } public class mediaviewmodel { public string title { get; set; } public string icon { get; set; } public modulesectionviewmodel modulesection {get; set;} } public class modulesectionviewmodel { public string title { get; set; } }
the view you're seeing in image moduleview the tableview (the sliding navigation bit) bind it's source media property the table grouped modulesection.title property is possible? if so, start?
to add together complication, prefer doing bindings in xaml :)
tableview
not bindable right now. can accomplish similar result subclassing it, , assigning tableview.root
property constructed tableroot
in onbindingcontextchanged()
override.
xamarin.forms
Comments
Post a Comment