12 interfaces inheriting from IElement
Microsoft.Maui (9)
Core\IApplication.cs (1)
9 public interface IApplication : IElement
Core\IMenuBar.cs (1)
9 public interface IMenuBar : IList<IMenuBarItem>, IElement
Core\IMenuBarItem.cs (1)
8 public interface IMenuBarItem : IList<IMenuElement>, IElement
Core\IMenuElement.cs (1)
6 public interface IMenuElement : IElement, IImageSourcePart, IText
Core\ISwipeItem.cs (1)
6 public interface ISwipeItem : IElement
Core\ITitledElement.cs (1)
6 public interface ITitledElement : IElement
Core\IToolbar.cs (1)
6 public interface IToolbar : IElement
Core\IView.cs (1)
10 public interface IView : IElement, ITransform
IFlyout.cs (1)
3 public interface IFlyout : IElement
Microsoft.Maui.Controls (1)
IControlsElement.cs (1)
6 internal interface IControlsElement : Maui.IElement
Microsoft.Maui.Maps (2)
Core\IMapElement.cs (1)
6 public interface IMapElement : IElement, IStroke
Core\IMapPin.cs (1)
9 public interface IMapPin : IElement
1 implementation of IElement
Microsoft.Maui.Controls (1)
Element\Element.cs (1)
49 public abstract partial class Element : BindableObject, IElementDefinition, INameScope, IElementController, IVisualTreeElement, Maui.IElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IControlsElement, IHandlerDisconnectPolicies
129 references to IElement
Microsoft.Maui (92)
CommandMapper.cs (7)
3using Command = System.Action<Microsoft.Maui.IElementHandler, Microsoft.Maui.IElement, object?>; 27 private protected virtual void InvokeCore(string key, IElementHandler viewHandler, IElement virtualView, object? args) 46 public void Invoke(IElementHandler viewHandler, IElement? virtualView, string property, object? args) 65 void Invoke(IElementHandler viewHandler, IElement? virtualView, string property, object? args); 69 where TVirtualView : IElement 78 where TVirtualView : IElement 109 where TVirtualView : IElement
CommandMapperExtensions.cs (18)
16 string key, Action<TViewHandler, TVirtualView, object?, Action<IElementHandler, IElement, object?>?> method) 17 where TVirtualView : IElement where TViewHandler : IElementHandler 29 string key, Action<TViewHandler, TVirtualView, object?, Action<IElementHandler, IElement, object?>?> method) 30 where TVirtualView : IElement where TViewHandler : IElementHandler 50 public static void ModifyMapping<TVirtualView, TViewHandler>(this ICommandMapper<IElement, IElementHandler> commandMapper, 51 string key, Action<TViewHandler, TVirtualView, object?, Action<IElementHandler, IElement, object?>?> method) 52 where TVirtualView : IElement where TViewHandler : IElementHandler 56 void newMethod(IElementHandler handler, IElement view, object? args) 75 public static void ReplaceMapping<TVirtualView, TViewHandler>(this ICommandMapper<IElement, IElementHandler> commandMapper, 77 where TVirtualView : IElement where TViewHandler : IElementHandler 92 where TVirtualView : IElement where TViewHandler : IElementHandler 105 where TVirtualView : IElement where TViewHandler : IElementHandler 122 public static void AppendToMapping<TVirtualView, TViewHandler>(this ICommandMapper<IElement, IElementHandler> commandMapper, 124 where TVirtualView : IElement where TViewHandler : IElementHandler 145 where TVirtualView : IElement where TViewHandler : IElementHandler 158 where TVirtualView : IElement where TViewHandler : IElementHandler 175 public static void PrependToMapping<TVirtualView, TViewHandler>(this ICommandMapper<IElement, IElementHandler> commandMapper, 177 where TVirtualView : IElement where TViewHandler : IElementHandler
Core\Extensions\VisualTreeElementExtensions.cs (2)
277 if (childVTE is IElement element && 303 if (visualTreeElement is IElement element)
Core\IElement.cs (1)
13 IElement? Parent { get; }
Handlers\Element\ElementHandler.cs (7)
7 public static IPropertyMapper<IElement, IElementHandler> ElementMapper = new PropertyMapper<IElement, IElementHandler>() 11 public static CommandMapper<IElement, IElementHandler> ElementCommandMapper = new CommandMapper<IElement, IElementHandler>() 33 public IElement? VirtualView { get; private protected set; } 38 public virtual void SetVirtualView(IElement view) 45 var oldVirtualView = VirtualView;
Handlers\Element\ElementHandlerOfT.cs (2)
6 where TVirtualView : class, IElement 31 IElement? IElementHandler.VirtualView => base.VirtualView;
Handlers\IElementHandler.cs (2)
19 void SetVirtualView(IElement view); 47 IElement? VirtualView { get; }
Handlers\View\ViewHandlerOfT.cs (2)
48 IElement? IElementHandler.VirtualView => base.VirtualView; 55 public sealed override void SetVirtualView(IElement view) =>
Hosting\IMauiHandlersFactory.cs (1)
15 IElementHandler? GetHandler<T>() where T : IElement;
Hosting\Internal\MauiHandlersFactory.cs (1)
25 public IElementHandler? GetHandler<T>() where T : IElement
Hosting\Internal\RegisteredHandlerServiceTypeSet.cs (1)
32 Debug.Assert(typeof(IElement).IsAssignableFrom(type));
Hosting\MauiHandlersCollectionExtensions.cs (7)
23 if (!typeof(IElement).IsAssignableFrom(viewType) || !typeof(IElementHandler).IsAssignableFrom(handlerType)) 24 throw new InvalidOperationException($"Unable to add handler mapping for {viewType} and {handlerType}. Please ensure that {viewType} implements {nameof(IElement)} and {handlerType} implements {nameof(IElementHandler)}."); 42 where TType : IElement 62 where TType : IElement 81 if (!typeof(IElement).IsAssignableFrom(viewType) || !typeof(IElementHandler).IsAssignableFrom(handlerType)) 82 throw new InvalidOperationException($"Unable to add handler mapping for {viewType} and {handlerType}. Please ensure that {viewType} implements {nameof(IElement)} and {handlerType} implements {nameof(IElementHandler)}."); 120 where TType : IElement
Platform\ElementExtensions.cs (10)
56 public static IElementHandler ToHandler(this IElement view, IMauiContext context) 104 internal static PlatformView ToPlatform(this IElement view) 125 public static PlatformView ToPlatform(this IElement view, IMauiContext context) 138 static void SetHandler(this BasePlatformType nativeElement, IElement element, IMauiContext context) 174 internal static T? FindParentOfType<T>(this IElement element, bool includeThis = false) 175 where T : IElement 180 foreach (var parent in element.GetParentsPath()) 189 static IEnumerable<IElement?> GetParentsPath(this IElement self) 191 IElement? current = self;
Platform\HandlerNotFoundException.cs (1)
14 public HandlerNotFoundException(IElement element) :
Platform\ViewExtensions.cs (4)
118 internal static bool IsThisMyPlatformView(this IElement? element, PlatformView platformView) 129 internal static IDisposable OnUnloaded(this IElement element, Action action) 148 internal static IDisposable OnLoaded(this IElement element, Action action) 197 internal static bool IsLoadedOnPlatform(this IElement element)
PropertyMapper.cs (12)
18 protected readonly Dictionary<string, Action<IElementHandler, IElement>> _mapper = new(StringComparer.Ordinal); 35 protected virtual void SetPropertyCore(string key, Action<IElementHandler, IElement> action) 41 protected virtual void UpdatePropertyCore(string key, IElementHandler viewHandler, IElement virtualView) 50 public virtual Action<IElementHandler, IElement>? GetProperty(string key) 67 public void UpdateProperty(IElementHandler viewHandler, IElement? virtualView, string property) 75 public void UpdateProperties(IElementHandler viewHandler, IElement? virtualView) 129 Action<IElementHandler, IElement>? GetProperty(string key); 133 void UpdateProperties(IElementHandler elementHandler, IElement virtualView); 135 void UpdateProperty(IElementHandler elementHandler, IElement virtualView, string property); 139 where TVirtualView : IElement 146 where TVirtualView : IElement 188 where TVirtualView : IElement
PropertyMapperExtensions.cs (14)
16 string key, Action<TViewHandler, TVirtualView, Action<IElementHandler, IElement>?> method) 17 where TVirtualView : IElement where TViewHandler : IElementHandler 37 public static void ModifyMapping<TVirtualView, TViewHandler>(this IPropertyMapper<IElement, IElementHandler> propertyMapper, 38 string key, Action<TViewHandler, TVirtualView, Action<IElementHandler, IElement>?> method) 39 where TVirtualView : IElement where TViewHandler : IElementHandler 43 void newMethod(IElementHandler handler, IElement view) 62 public static void ReplaceMapping<TVirtualView, TViewHandler>(this IPropertyMapper<IElement, IElementHandler> propertyMapper, 64 where TVirtualView : IElement where TViewHandler : IElementHandler 79 where TVirtualView : IElement where TViewHandler : IElementHandler 96 public static void AppendToMapping<TVirtualView, TViewHandler>(this IPropertyMapper<IElement, IElementHandler> propertyMapper, 98 where TVirtualView : IElement where TViewHandler : IElementHandler 119 where TVirtualView : IElement where TViewHandler : IElementHandler 136 public static void PrependToMapping<TVirtualView, TViewHandler>(this IPropertyMapper<IElement, IElementHandler> propertyMapper, 138 where TVirtualView : IElement where TViewHandler : IElementHandler
Microsoft.Maui.Controls (37)
DragAndDrop\DragEventArgs.cs (2)
11 Func<IElement?, Point?>? _getPosition; 28 internal DragEventArgs(DataPackage dataPackage, Func<IElement?, Point?>? getPosition, PlatformDragEventArgs platformArgs)
DragAndDrop\DragGestureRecognizer.cs (1)
111 internal DragStartingEventArgs SendDragStarting(View element, Func<IElement?, Point?>? getPosition = null, PlatformDragStartingEventArgs? platformArgs = null)
DragAndDrop\DragStartingEventArgs.cs (3)
12 Func<IElement?, Point?>? _getPosition; 24 /// <param name="getPosition">Function used to get the position relative a specified <see cref="IElement"/>.</param> 26 internal DragStartingEventArgs(Func<IElement?, Point?>? getPosition, PlatformDragStartingEventArgs? platformArgs)
DragAndDrop\DropEventArgs.cs (3)
11 Func<IElement?, Point?>? _getPosition; 27 /// <param name="getPosition">Function used to get the position relative a specified <see cref="IElement"/>.</param> 29 internal DropEventArgs(DataPackageView? view, Func<IElement?, Point?>? getPosition, PlatformDropEventArgs platformArgs)
Element\Element.cs (2)
958 Maui.IElement Maui.IElement.Parent => Parent;
Element\Element.Mapper.cs (2)
13 ViewHandler.ViewMapper.ReplaceMapping<Maui.IElement, IElementHandler>(AutomationProperties.IsInAccessibleTreeProperty.PropertyName, MapAutomationPropertiesIsInAccessibleTree); 14 ViewHandler.ViewMapper.ReplaceMapping<Maui.IElement, IElementHandler>(AutomationProperties.ExcludedWithChildrenProperty.PropertyName, MapAutomationPropertiesExcludedWithChildren);
Element\Element.Standard.cs (2)
28 static void MapAutomationPropertiesIsInAccessibleTree(IElementHandler handler, IElement element) 34 static void MapAutomationPropertiesExcludedWithChildren(IElementHandler handler, IElement element)
FlyoutPage\FlyoutPage.cs (1)
281 if (sender is Maui.IElement element && element.IsShimmed())
NavigationPage\NavigationPageToolbar.cs (1)
31 public NavigationPageToolbar(Maui.IElement parent, Page rootPage) : base(parent)
Platform\IElementExtensions.cs (1)
8 internal static bool IsShimmed(this Microsoft.Maui.IElement? self)
PointerEventArgs.cs (2)
12 Func<IElement?, Point?>? _getPosition; 26 internal PointerEventArgs(Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? args = null)
PointerGestureRecognizer.cs (5)
189 internal void SendPointerEntered(View sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null) 202 internal void SendPointerExited(View sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null) 215 internal void SendPointerMoved(View sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null) 228 internal void SendPointerPressed(View sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null) 241 internal void SendPointerReleased(View sender, Func<IElement?, Point?>? getPosition, PlatformPointerEventArgs? platformArgs = null)
TapGestureRecognizer.cs (1)
56 internal void SendTapped(View sender, Func<IElement?, Point?>? getPosition = null)
TappedEventArgs.cs (2)
9 Func<IElement?, Point?>? _getPosition; 17 internal TappedEventArgs(object? parameter, Func<IElement?, Point?>? getPosition) : this(parameter)
Toolbar\Toolbar.cs (3)
27 Maui.IElement _parent; 30 public Toolbar(Maui.IElement parent) 69 public Maui.IElement Parent => _parent;
ToolTipProperties.cs (1)
13 if (bindable is IElement element)
ViewExtensions.cs (3)
309 if (element is Maui.IElement fe && fe.Handler?.MauiContext != null) 314 if (parent is Maui.IElement parentView && parentView.Handler?.MauiContext != null) 345 where T : Maui.IElement
VisualElement\VisualElement.cs (1)
2130 IElementHandler? IElement.Handler
VisualElement\VisualElement.Mapper.cs (1)
61 static void MapFocus(IViewHandler handler, VisualElement view, object args, Action<IElementHandler, IElement, object> baseMethod)