4 types derived from Cell
Microsoft.Maui.Controls (4)
Cells\EntryCell.cs (1)
9 public class EntryCell : Cell, ITextAlignmentElement, IEntryCellController, ITextAlignment
Cells\SwitchCell.cs (1)
8 public class SwitchCell : Cell
Cells\TextCell.cs (1)
9 public class TextCell : Cell
Cells\ViewCell.cs (1)
9 public class ViewCell : Cell
128 references to Cell
Microsoft.Maui.Controls (128)
Cells\Cell.cs (11)
19 public static readonly BindableProperty IsEnabledProperty = BindableProperty.Create(nameof(IsEnabled), typeof(bool), typeof(Cell), true, propertyChanged: OnIsEnabledPropertyChanged); 283 (bindable as Cell).OnPropertyChanged(nameof(HasContextActions)); 335 public IPlatformElementConfiguration<T, Cell> On<T>() where T : IConfigPlatform 340 IElementConfiguration<Cell> GetElementConfiguration() 345 class ElementConfiguration : IElementConfiguration<Cell> 347 readonly Lazy<PlatformConfigurationRegistry<Cell>> _platformConfigurationRegistry; 348 public ElementConfiguration(Cell cell) 351 new Lazy<PlatformConfigurationRegistry<Cell>>(() => new PlatformConfigurationRegistry<Cell>(cell)); 355 public IPlatformElementConfiguration<T, Cell> On<T>() where T : IConfigPlatform 360 internal PlatformConfigurationRegistry<Cell> Registry => _platformConfigurationRegistry.Value;
Compatibility\Handlers\ListView\iOS\CellRenderer.cs (13)
10 public class CellRenderer : ElementHandler<Cell, UITableViewCell>, IRegisterable 12 static readonly BindableProperty RealCellProperty = BindableProperty.CreateAttached("RealCell", typeof(UITableViewCell), typeof(Cell), null); 16 public static PropertyMapper<Cell, CellRenderer> Mapper = 17 new PropertyMapper<Cell, CellRenderer>(ElementHandler.ElementMapper); 19 public static CommandMapper<Cell, CellRenderer> CommandMapper = 20 new CommandMapper<Cell, CellRenderer>(ElementHandler.ElementCommandMapper); 38 public virtual UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv) 65 public virtual void SetAccessibility(UITableViewCell tableViewCell, Cell cell) 91 public virtual void SetBackgroundColor(UITableViewCell tableViewCell, Cell cell, UIColor color) 107 protected void UpdateBackground(UITableViewCell tableViewCell, Cell cell) 122 if (cell.GetIsGroupHeader<ItemsView<Cell>, Cell>()) 181 if (index == null && VirtualView is Cell c)
Compatibility\Handlers\ListView\iOS\CellTableViewCell.cs (5)
12 WeakReference<Cell> _cell; 22 public Cell Cell 29 if (_cell.TryGetTarget(out var cell) && cell == value) 54 internal static UITableViewCell GetPlatformCell(UITableView tableView, Cell cell, bool recycleCells = false, string templateId = "") 117 if (Cell is Cell cell)
Compatibility\Handlers\ListView\iOS\ContextActionCell.cs (2)
26 Cell _cell; 127 public void Update(UITableView tableView, Cell cell, UITableViewCell nativeCell)
Compatibility\Handlers\ListView\iOS\EntryCellRenderer.cs (2)
25 public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv) 79 else if (e.PropertyName == Cell.IsEnabledProperty.PropertyName)
Compatibility\Handlers\ListView\iOS\ImageCellRenderer.cs (1)
17 public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv)
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (27)
43 ITemplatedItemsView<Cell> TemplatedItemsView => Element; 216 var templatedItems = ((ITemplatedItemsView<Cell>)e.OldElement).TemplatedItems; 251 var templatedItems = ((ITemplatedItemsView<Cell>)e.NewElement).TemplatedItems; 409 var til = (TemplatedItemsList<ItemsView<Cell>, Cell>)sender; 805 Dictionary<object, Cell> _prototypicalCellByTypeOrDataTemplate = new Dictionary<object, Cell>(); 826 var templatedItems = ((ITemplatedItemsView<Cell>)list).TemplatedItems; 844 var firstCell = templatedItems.ActivateContent(0, item); 876 internal Cell GetPrototypicalCell(NSIndexPath indexPath) 895 if (!_prototypicalCellByTypeOrDataTemplate.TryGetValue(itemTypeOrDataTemplate, out Cell protoCell)) 913 var cell = GetPrototypicalCell(indexPath); 922 internal nfloat CalculateHeightForCell(UITableView tableView, Cell cell) 1064 Cell cell; 1091 cell = (Cell)((INativeElementView)platformCell).Element; 1125 var cell = list.TemplatedItems[(int)section]; 1143 var cell = list.TemplatedItems[(int)section]; 1239 Cell formsCell = null; 1241 formsCell = (Cell)((INativeElementView)cell).Element; 1359 var templatedItems = ((ITemplatedItemsView<Cell>)list).TemplatedItems; 1366 templatedItems = (ITemplatedItemsList<Cell>)((IList)templatedItems)[indexPath.Section]; 1372 protected ITemplatedItemsList<Cell> GetTemplatedItemsListForPath(NSIndexPath indexPath) 1376 var templatedItems = ((ITemplatedItemsView<Cell>)list).TemplatedItems; 1378 templatedItems = (ITemplatedItemsList<Cell>)((IList)templatedItems)[indexPath.Section]; 1397 protected Cell GetCellForPath(NSIndexPath indexPath) 1400 var cell = templatedItems[indexPath.Row]; 1541 public Cell Cell { get; set; }
Compatibility\Handlers\ListView\iOS\SwitchCellRenderer.cs (2)
22 public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv) 78 else if (e.PropertyName == Cell.IsEnabledProperty.PropertyName)
Compatibility\Handlers\ListView\iOS\TextCellRenderer.cs (2)
20 public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv) 71 else if (args.PropertyName == Cell.IsEnabledProperty.PropertyName)
Compatibility\Handlers\ListView\iOS\ViewCellRenderer.cs (2)
20 public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv) 84 if (e.PropertyName == Cell.IsEnabledProperty.PropertyName)
Compatibility\Handlers\TableView\iOS\TableViewModelRenderer.cs (6)
13 readonly Dictionary<nint, Cell> _headerCells = new Dictionary<nint, Cell>(); 53 var cell = table.Model.GetCell(indexPath.Section, indexPath.Row); 66 var result = _headerCells[section]; 78 var result = _headerCells[section]; 187 var cell = table.Model.GetCell(indexPath.Section, indexPath.Row);
Compatibility\iOS\Extensions\CellExtensions.cs (7)
10 internal static NSIndexPath GetIndexPath(this Cell self) 20 var til = self.GetGroup<ItemsView<Cell>, Cell>(); 22 section = til.HeaderContent.GetIndex<ItemsView<Cell>, Cell>(); 24 var row = self.GetIndex<ItemsView<Cell>, Cell>();
Element\Element.cs (1)
31 /// <term><see cref = "Cell"/></term>
Hosting\AppHostBuilderExtensions.cs (1)
122 handlersCollection.AddHandler(typeof(Cell), typeof(Handlers.Compatibility.CellRenderer));
Internals\CellExtensions.cs (1)
41 public static Tuple<int, int> GetPath(this Cell cell)
ITableModel.cs (2)
8 Cell GetCell(int section, int row); 9 Cell GetHeaderCell(int section);
ListView\IListViewController.cs (7)
15 Cell CreateDefaultCell(object item); 17 void NotifyRowTapped(int index, int inGroupIndex, Cell cell); 18 void NotifyRowTapped(int index, int inGroupIndex, Cell cell, bool isContextMenuRequested); 19 void NotifyRowTapped(int index, Cell cell); 20 void NotifyRowTapped(int index, Cell cell, bool isContextMenuRequested); 21 void SendCellAppearing(Cell cell); 22 void SendCellDisappearing(Cell cell);
ListView\ListView.cs (11)
19 public class ListView : ItemsView<Cell>, IListViewController, IElementConfiguration<ListView>, IVisualTreeElement 335 public void SendCellAppearing(Cell cell) 340 public void SendCellDisappearing(Cell cell) 414 protected override Cell CreateDefault(object item) 445 protected override void SetupContent(Cell content, int index) 459 protected override void UnhookContent(Cell content) 476 public Cell CreateDefaultCell(object item) 507 public void NotifyRowTapped(int groupIndex, int inGroupIndex, Cell cell = null) 533 public void NotifyRowTapped(int groupIndex, int inGroupIndex, Cell cell, bool isContextMenuRequested) 573 public void NotifyRowTapped(int index, Cell cell = null) 588 public void NotifyRowTapped(int index, Cell cell, bool isContextmenuRequested)
PlatformConfiguration\AndroidSpecific\ViewCell.cs (6)
5 using FormsCell = Maui.Controls.Cell; 15 var cell = element as FormsCell; 32 public static bool GetIsContextActionsLegacyModeEnabled(this IPlatformElementConfiguration<Android, FormsCell> config) 38 public static IPlatformElementConfiguration<Android, FormsCell> SetIsContextActionsLegacyModeEnabled(this IPlatformElementConfiguration<Android, FormsCell> config, bool value)
PlatformConfiguration\iOSSpecific\Cell.cs (4)
5 using FormsElement = Maui.Controls.Cell; 22 public static Color DefaultBackgroundColor(this IPlatformElementConfiguration<iOS, FormsElement> config) 26 public static IPlatformElementConfiguration<iOS, FormsElement> SetDefaultBackgroundColor(this IPlatformElementConfiguration<iOS, FormsElement> config, Color value)
TableView\TableModel.cs (4)
14 public virtual Cell GetCell(int section, int row) 17 var cell = item as Cell; 25 public virtual Cell GetHeaderCell(int section)
TableView\TableSection.cs (1)
165 public sealed class TableSection : TableSectionBase<Cell>
TableView\TableView.cs (9)
128 foreach (Cell cell in Root.SelectMany(r => r)) 161 childCollectionChangedEventArgs.Args.NewItems?.Cast<Cell>().ForEach(cell => cell.Parent = this); 175 static readonly BindableProperty PathProperty = BindableProperty.Create("Path", typeof(Tuple<int, int>), typeof(Cell), null); 200 public override Cell GetCell(int section, int row) 202 var cell = (Cell)GetItem(section, row); 236 ((Cell)item).OnTapped(); 239 internal static Tuple<int, int> GetPath(Cell item) 262 static void SetPath(Cell item, Tuple<int, int> index)
TemplatedItemsList.cs (1)
38 static readonly BindablePropertyKey IsGroupHeaderPropertyKey = BindableProperty.CreateAttachedReadOnly("IsGroupHeader", typeof(bool), typeof(Cell), false);