2 implementations of IElementDefinition
Microsoft.Maui.Controls (2)
Element\Element.cs (1)
49 public abstract partial class Element : BindableObject, IElementDefinition, INameScope, IElementController, IVisualTreeElement, Maui.IElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IControlsElement, IHandlerDisconnectPolicies
ElementTemplate.cs (1)
10 public class ElementTemplate : IElementDefinition
37 references to IElementDefinition
Microsoft.Maui.Controls (37)
Application\Application.cs (2)
109 ((IElementDefinition)this).RemoveResourcesChangedListener(MainPage.OnParentResourcesChanged); 117 ((IElementDefinition)this).AddResourcesChangedListener(value.OnParentResourcesChanged);
AppThemeBinding.cs (2)
19 ((IElementDefinition)parent)?.AddResourcesChangedListener(OnParentResourcesChanged); 35 ((IElementDefinition)_parent)?.RemoveResourcesChangedListener(OnParentResourcesChanged);
Border\Border.cs (2)
121 ((IElementDefinition)this).AddResourcesChangedListener(stroke.OnParentResourcesChanged); 134 ((IElementDefinition)this).RemoveResourcesChangedListener(stroke.OnParentResourcesChanged);
Element\Element.cs (4)
372 void IElementDefinition.AddResourcesChangedListener(Action<object, ResourcesChangedEventArgs> onchanged) 403 if (realParent is IElementDefinition element) 417 ((IElementDefinition)RealParent).AddResourcesChangedListener(OnParentResourcesChanged); 443 void IElementDefinition.RemoveResourcesChangedListener(Action<object, ResourcesChangedEventArgs> onchanged)
ElementTemplate.cs (5)
40 void IElementDefinition.AddResourcesChangedListener(Action<object, ResourcesChangedEventArgs> onchanged) 51 Element IElementDefinition.Parent 59 ((IElementDefinition)_parent).RemoveResourcesChangedListener(OnResourcesChanged); 62 ((IElementDefinition)_parent).AddResourcesChangedListener(OnResourcesChanged); 66 void IElementDefinition.RemoveResourcesChangedListener(Action<object, ResourcesChangedEventArgs> onchanged)
GestureElement.cs (6)
23 foreach (IElementDefinition item in args.NewItems.OfType<IElementDefinition>()) 32 foreach (IElementDefinition item in args.OldItems.OfType<IElementDefinition>()) 49 foreach (IElementDefinition item in _gestureRecognizers.OfType<IElementDefinition>())
Page\Page.cs (2)
781 foreach (IElementDefinition item in args.NewItems) 787 foreach (IElementDefinition item in args.OldItems)
ResourcesExtensions.cs (2)
9 public static IEnumerable<KeyValuePair<string, object>> GetMergedResources(this IElementDefinition element) 58 public static bool TryGetResource(this IElementDefinition element, string key, out object value)
Shapes\Shape.cs (4)
208 ((IElementDefinition)this).AddResourcesChangedListener(fill.OnParentResourcesChanged); 221 ((IElementDefinition)this).RemoveResourcesChangedListener(fill.OnParentResourcesChanged); 243 ((IElementDefinition)this).AddResourcesChangedListener(stroke.OnParentResourcesChanged); 256 ((IElementDefinition)this).RemoveResourcesChangedListener(stroke.OnParentResourcesChanged);
View\View.cs (4)
101 foreach (IElementDefinition item in newItems) 114 foreach (IElementDefinition item in oldItems) 137 if (gestureRecognizer is IElementDefinition item) 147 if (gestureRecognizer is IElementDefinition item)
VisualElement\VisualElement.cs (4)
325 ((IElementDefinition)this).AddResourcesChangedListener(background.OnParentResourcesChanged); 337 ((IElementDefinition)this).RemoveResourcesChangedListener(background.OnParentResourcesChanged); 2154 ((IElementDefinition)this).AddResourcesChangedListener(shadow.OnParentResourcesChanged); 2164 ((IElementDefinition)this).RemoveResourcesChangedListener(shadow.OnParentResourcesChanged);