44 references to Control
Microsoft.Maui.Controls (44)
Compatibility\Handlers\ListView\Windows\ListViewRenderer.cs (13)
93 if (Control != null) 95 Control.Loaded -= ControlOnLoaded; 132 if (Control != null) 134 Control.Loaded += ControlOnLoaded; 521 _defaultVerticalScrollVisibility = ScrollViewer.GetVerticalScrollBarVisibility(Control); 526 ScrollViewer.SetVerticalScrollBarVisibility(Control, UwpScrollBarVisibility.Visible); 529 ScrollViewer.SetVerticalScrollBarVisibility(Control, UwpScrollBarVisibility.Hidden); 532 ScrollViewer.SetVerticalScrollBarVisibility(Control, (UwpScrollBarVisibility)_defaultVerticalScrollVisibility); 540 _defaultHorizontalScrollVisibility = ScrollViewer.GetHorizontalScrollBarVisibility(Control); 545 ScrollViewer.SetHorizontalScrollBarVisibility(Control, UwpScrollBarVisibility.Visible); 548 ScrollViewer.SetHorizontalScrollBarVisibility(Control, UwpScrollBarVisibility.Hidden); 551 ScrollViewer.SetHorizontalScrollBarVisibility(Control, (UwpScrollBarVisibility)_defaultHorizontalScrollVisibility); 628 Control.DispatcherQueue.TryEnqueue(UI.Dispatching.DispatcherQueuePriority.Normal, () =>
Compatibility\Handlers\TableView\Windows\TableViewRenderer.cs (9)
36 if (Control == null) 52 Control.SetBinding(WItemsControl.ItemsSourceProperty, ""); 53 Control.SelectionChanged += OnSelectionChanged; 68 if (Control != null) 70 Control.SelectionChanged -= OnSelectionChanged; 78 Control.Header = Element.Root; 83 Control.DataContext = new CollectionViewSource { Source = Element.Root, IsSourceGrouped = true }; 102 if (Control == null) 105 Control.SelectedItem = null;
Compatibility\Handlers\Windows\FrameRenderer.cs (14)
55 if (Control == null) 85 Control?.Arrange(new WRect(0, 0, finalSize.Width, finalSize.Height)); 91 Control?.Measure(availableSize); 93 if (Control?.DesiredSize is not null) 94 return Control.DesiredSize; 109 if (Control != null) 112 Control.Background = backgroundColor.IsDefault() ? 115 Control.Background = background.ToBrush(); 123 Control.Child = null; 133 Control.Child = view; 143 Control.BorderBrush = Element.BorderColor.ToPlatform(); 144 Control.BorderThickness = WinUIHelpers.CreateThickness(borderWidth); 148 Control.BorderBrush = new Color(0, 0, 0, 0).ToPlatform(); 159 Control.CornerRadius = WinUIHelpers.CreateCornerRadius(cornerRadius);
Compatibility\Handlers\Windows\VisualElementRenderer.cs (8)
37 public UIElement? GeTPlatformElement() => Control; 55 TPlatformElement? oldControl = Control; 63 if (Control == null) 68 Control.HorizontalAlignment = Microsoft.UI.Xaml.HorizontalAlignment.Stretch; 69 Control.VerticalAlignment = Microsoft.UI.Xaml.VerticalAlignment.Stretch; 84 Control?.Measure(availableSize); 88 var mauiRect = Control?.DesiredSize ?? minimumSize.ToPlatform(); 112 Control?.Arrange(myRect);