3 implementations of Handler
Microsoft.Maui.Controls (3)
Element\Element.cs (1)
966 public IElementHandler Handler
Toolbar\Toolbar.cs (1)
49 public IElementHandler Handler
VisualElement\VisualElement.cs (1)
2130 IElementHandler? IElement.Handler
5 writes to Handler
Microsoft.Maui (5)
Handlers\Element\ElementHandler.cs (3)
53 VirtualView.Handler = this; 60 oldVirtualView.Handler = null; 116 VirtualView.Handler = null;
Platform\ElementExtensions.cs (2)
96 view.Handler = handler; 156 element.Handler = handler;
22 references to Handler
Microsoft.Maui (15)
Core\Extensions\VisualTreeElementExtensions.cs (1)
278 element.Handler is IPlatformViewHandler pvh &&
Handlers\Element\ElementHandler.cs (3)
52 if (VirtualView.Handler != this) 59 if (oldVirtualView?.Handler != null) 115 if (VirtualView != null && VirtualView.Handler == this)
Handlers\MenuBar\MenuBarHandler.cs (1)
82 item?.Handler?.DisconnectHandler();
Handlers\MenuBarItem\MenuBarItemHandler.cs (1)
96 item?.Handler?.DisconnectHandler();
Handlers\MenuFlyoutHandler\MenuFlyoutHandler.cs (1)
75 item?.Handler?.DisconnectHandler();
Handlers\MenuFlyoutSubItem\MenuFlyoutSubItemHandler.cs (1)
99 item?.Handler?.DisconnectHandler();
Platform\ElementExtensions.cs (5)
65 var handler = view.Handler; 110 _ = view.Handler ?? throw new InvalidOperationException($"{nameof(MauiContext)} should have been set on parent."); 112 if (view.Handler is IViewHandler viewHandler) 121 return (view.Handler?.PlatformView as PlatformView) ?? throw new InvalidOperationException($"Unable to convert {view} to {typeof(PlatformView)}"); 144 var handler = element.Handler;
Platform\ViewExtensions.cs (2)
121 element.Handler is IPlatformViewHandler pvh) 199 if (element.Handler is not IPlatformViewHandler pvh)
Microsoft.Maui.Controls (7)
NavigationPage\NavigationPage.cs (1)
469 FindMyToolbar()?.Handler?.UpdateValue(nameof(IToolbar.BackButtonVisible));
Platform\IElementExtensions.cs (1)
10 string typeName = $"{self?.Handler?.GetType().Name}";
ToolTipProperties.cs (1)
14 element?.Handler?.UpdateValue(nameof(IToolTipElement.ToolTip));
ViewExtensions.cs (4)
309 if (element is Maui.IElement fe && fe.Handler?.MauiContext != null) 310 return fe.Handler.MauiContext; 314 if (parent is Maui.IElement parentView && parentView.Handler?.MauiContext != null) 315 return parentView.Handler.MauiContext;