public virtual CellBase GetCell(Cell item, Gtk.Container reusableView, Controls.ListView listView) { Cell = item; var cell = reusableView as Gtk.Container ?? GetCellWidgetInstance(item); var cellBase = cell as CellBase; if (cellBase != null) { if (cellBase.Cell != null) { cellBase.Cell.PropertyChanged -= cellBase.HandlePropertyChanged; } cellBase.Cell = item; item.PropertyChanged += cellBase.HandlePropertyChanged; cellBase.PropertyChanged = CellPropertyChanged; } SetRealCell(item, cell); WireUpForceUpdateSizeRequested(item, cell); UpdateBackground(cell, item); UpdateIsEnabled(cellBase); UpdateHeight(cellBase); return(cellBase); }
public override CellBase GetCell(Cell item, Gtk.Container reusableView, Controls.ListView listView) { var gtkImageCell = base.GetCell(item, reusableView, listView) as ImageCell; var imageCell = (System.Maui.ImageCell)item; SetImage(imageCell, gtkImageCell); return gtkImageCell; }
public override CellBase GetCell(Cell item, Gtk.Container reusableView, Controls.ListView listView) { var gtkImageCell = base.GetCell(item, reusableView, listView) as ImageCell; var imageCell = (Microsoft.Maui.Controls.Compatibility.ImageCell)item; SetImage(imageCell, gtkImageCell); return(gtkImageCell); }
public override CellBase GetCell(Cell item, Gtk.Container reusableView, Controls.ListView listView) { var switchCell = base.GetCell(item, reusableView, listView) as SwitchCell; switchCell.Toggled -= OnToggled; switchCell.Toggled += OnToggled; return(switchCell); }
public override CellBase GetCell(Cell item, Gtk.Container reusableView, Controls.ListView listView) { var gtkTextCell = base.GetCell(item, reusableView, listView) as TextCell; var textCell = (System.Maui.TextCell)item; gtkTextCell.IsGroupHeader = textCell.GetIsGroupHeader <ItemsView <Cell>, Cell>(); return(gtkTextCell); }
public override CellBase GetCell(Cell item, Gtk.Container reusableView, Controls.ListView listView) { var entryCell = base.GetCell(item, reusableView, listView) as EntryCell; entryCell.TextChanged -= OnTextChanged; entryCell.TextChanged += OnTextChanged; entryCell.EditingDone -= OnEditingDone; entryCell.EditingDone += OnEditingDone; return(entryCell); }
public override CellBase GetCell(Cell item, Gtk.Container reusableView, Controls.ListView listView) { var gtkImageCell = base.GetCell(item, reusableView, listView) as ImageCell; var imageCell = (Xamarin.Forms.ImageCell)item; #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed SetImage(imageCell, gtkImageCell); #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed return(gtkImageCell); }
public override CellBase GetCell(Cell item, Gtk.Container reusableView, Controls.ListView listView) { var gtkImageCell = base.GetCell(item, reusableView, listView) as ImageCell; var imageCell = (Xamarin.Forms.ImageCell)item;