75 references to Control
Microsoft.Maui.Controls (75)
Compatibility\Handlers\iOS\ViewRenderer.cs (6)
65 Control?.SizeToFit(); 71 return Control?.SizeThatFits(size) ?? base.SizeThatFits(size); 81 if (Control != null) 83 Control?.RemoveFromSuperview(); 89 if (Control != null) 90 AddSubview(Control);
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (53)
94 if (Control == null) 104 Control.BackgroundView = _backgroundUIView; 193 Control?.TableHeaderView?.Dispose(); 198 Control?.TableFooterView?.Dispose(); 224 if (Control == null) 258 Control.Source = _dataSource = e.NewElement.HasUnevenRows ? new UnevenListViewDataSource(e.NewElement, _tableViewController) : new ListViewDataSource(e.NewElement, _tableViewController); 288 Control.Source = _dataSource = Element.HasUnevenRows ? new UnevenListViewDataSource(_dataSource) : new ListViewDataSource(_dataSource); 357 Control.TableFooterView = null; 365 Control.TableFooterView = _footerRenderer.ToPlatform(); 370 Control.TableFooterView = _footerRenderer.ToPlatform(); 376 Control.TableHeaderView = null; 385 Control.TableHeaderView = _headerRenderer.ToPlatform(); 398 Control.TableHeaderView = _headerRenderer.ToPlatform(); 437 Control.ScrollToRow(NSIndexPath.FromRowSection(result.Item2, result.Item1), position, e.ShouldAnimate); 444 Control.Layer.RemoveAllAnimations(); 449 if (Control != null /*&& !_disposed*/) 450 Control.ScrollToRow(NSIndexPath.FromRowSection(index, 0), position, e.ShouldAnimate); 453 Control.ScrollToRow(NSIndexPath.FromRowSection(index, 0), position, e.ShouldAnimate); 475 Control.TableFooterView = null; 488 Control.TableFooterView = null; 514 Control.TableHeaderView = null; 527 Control.TableHeaderView = null; 550 if (Control.IndexPathsForVisibleRows == null && e.Action != NotifyCollectionChangedAction.Reset) 559 var lastIndex = Control.NumberOfRowsInSection(section); 619 Control.BeginUpdates(); 620 Control.InsertRows(GetPaths(section, newStartingIndex, newItemsCount), InsertRowsAnimation); 621 Control.EndUpdates(); 634 Control.BeginUpdates(); 635 Control.DeleteRows(GetPaths(section, oldStartingIndex, oldItemsCount), DeleteRowsAnimation); 636 Control.EndUpdates(); 649 Control.BeginUpdates(); 661 Control.MoveRow(NSIndexPath.FromRowSection(oldIndex, section), NSIndexPath.FromRowSection(newIndex, section)); 663 Control.EndUpdates(); 676 Control.BeginUpdates(); 677 Control.ReloadRows(GetPaths(section, oldStartingIndex, oldItemsCount), ReloadRowsAnimation); 678 Control.EndUpdates(); 690 Control.ReloadData(); 692 PerformWithoutAnimation(() => { Control.ReloadData(); }); 714 Control.RowHeight = UITableView.AutomaticDimension; 716 Control.RowHeight = rowHeight <= 0 ? DefaultRowHeight : rowHeight; 725 Control.SeparatorColor = color?.ToPlatform() ?? Microsoft.Maui.Platform.ColorExtensions.SeparatorColor; 734 Control.SeparatorStyle = UITableViewCellSeparatorStyle.SingleLine; 737 Control.SeparatorStyle = UITableViewCellSeparatorStyle.None; 749 var selectedIndexPath = Control.IndexPathForSelectedRow; 751 Control.DeselectRow(selectedIndexPath, false); 766 _defaultVerticalScrollVisibility = Control.ShowsVerticalScrollIndicator; 771 Control.ShowsVerticalScrollIndicator = true; 774 Control.ShowsVerticalScrollIndicator = false; 777 Control.ShowsVerticalScrollIndicator = (bool)_defaultVerticalScrollVisibility; 785 _defaultHorizontalScrollVisibility = Control.ShowsHorizontalScrollIndicator; 790 Control.ShowsHorizontalScrollIndicator = true; 793 Control.ShowsHorizontalScrollIndicator = false; 796 Control.ShowsHorizontalScrollIndicator = (bool)_defaultHorizontalScrollVisibility;
Compatibility\Handlers\TableView\iOS\TableViewRenderer.cs (16)
74 if (Control == null || Control.Style != style) 76 if (Control != null) 77 Control.Dispose(); 111 if (!Control.Layer.ShouldRasterize) 113 Control.Layer.RasterizationScale = UIScreen.MainScreen.Scale; 114 Control.Layer.ShouldRasterize = true; 118 Control.Layer.ShouldRasterize = false; 130 Control.ReloadData(); 136 Control.Source = modeledView.HasUnevenRows ? new UnEvenTableViewModelRenderer(modeledView) : new TableViewModelRenderer(modeledView); 141 Control.BackgroundView = Element.BackgroundColor == null ? _originalBackgroundView : null; 142 Control.BackgroundView.UpdateBackground(Element.Background); 150 Control.RowHeight = UITableView.AutomaticDimension; 153 Control.RowHeight = rowHeight <= 0 ? DefaultRowHeight : rowHeight; 161 Control.EstimatedRowHeight = DefaultRowHeight; 165 Control.EstimatedRowHeight = 0;