Hi,
Why BindingContext in the ViewCell is always null?
I need to put in some viewcell BoxView.
The number of BoxView depends on the BindingContext because it contains another list.
How can I do?
Thank you.
class Week() {
public string name {get;set;}
public List listDay { get;set;}
}
listView.ItemsSource = this.GetWeek();
listView.ItemTemplate = new DataTemplate(typeof(CellDay));
ViewCell:
List list = (BindingContext as Week).listDay;
foreach(Day d in list)
viewLayoutBox.Children.Add(boxView(d));
......