//--------------------------------------------------------------------------------------------------------------- public MultiColumnsCell(Type childCell, XamListView list) //--------------------------------------------------------------------------------------------------------------- { _list = list; _childCell = childCell; _grid = new Xamarin.Forms.Grid { ColumnSpacing = 0, VerticalOptions = LayoutOptions.Fill }; View = _grid; }
/// <summary> /// todo /// </summary> /// <param name="parentList">Parent ListView reference</param> /// <param name="simpleCell">selected when Columns = 1</param> /// <param name="multiColumnsCell">selected when Columns > 1 </param> /// <param name="multiColumnsCellInRow">will be used as final cell inside 'multiColumnsCell'</param> public MultiColumnsTemplateSelector( XamListView parentList, Type simpleCell, Type multiColumnsCell, Type multiColumnsCellInRow) { _simpleCell = simpleCell; _parent = parentList; _multiColumnsCell = multiColumnsCell; _multiColumnsCellInRow = multiColumnsCellInRow; CreateTemplates(); }