3 instantiations of HandlerType
Microsoft.Maui.Controls (3)
30 references to HandlerType
Microsoft.Maui.Controls (22)
Registrar.cs (16)
45 readonly Dictionary<Type, Dictionary<Type, HandlerType>> _handlers = new Dictionary<Type, Dictionary<Type, HandlerType>>();
53 [DynamicallyAccessedMembers(HandlerType.TargetMembers)] Type trender,
62 if (!_handlers.TryGetValue(tview, out Dictionary<Type, HandlerType> visualRenderers))
64 visualRenderers = new Dictionary<Type, HandlerType>();
70 if (visualRenderers.TryGetValue(supportedVisuals[i], out HandlerType existingTargetValue))
96 public void Register(Type tview, [DynamicallyAccessedMembers(HandlerType.TargetMembers)] Type trender, Type[] supportedVisual)
99 public void Register(Type tview, [DynamicallyAccessedMembers(HandlerType.TargetMembers)] Type trender)
170 [return: DynamicallyAccessedMembers(HandlerType.TargetMembers)]
176 if (_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers))
177 if (visualRenderers.TryGetValue(visualType, out HandlerType specificTypeRenderer))
183 if (visualRenderers.TryGetValue(_defaultVisualType, out HandlerType specificTypeRenderer))
190 if (LookupHandlerType(viewType, visualType, out HandlerType baseTypeRenderer))
207 bool LookupHandlerType(Type viewType, Type visualType, out HandlerType handlerType)
212 if (_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers))
239 if (!_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers) ||
Microsoft.Maui.Controls.Compatibility (8)
ExportRendererAttribute.cs (4)
9 public ExportRendererAttribute(Type handler, [DynamicallyAccessedMembers(Internals.HandlerType.TargetMembers)] Type target) : this(handler, target, null)
13 public ExportRendererAttribute(Type handler, [DynamicallyAccessedMembers(Internals.HandlerType.TargetMembers)] Type target, Type[] supportedVisuals) : base(handler, target, supportedVisuals)
21 public ExportCellAttribute(Type handler, [DynamicallyAccessedMembers(Internals.HandlerType.TargetMembers)] Type target) : base(handler, target)
29 public ExportImageSourceHandlerAttribute(Type handler, [DynamicallyAccessedMembers(Internals.HandlerType.TargetMembers)] Type target) : base(handler, target)