2 implementations of IResourcesProvider
Microsoft.Maui.Controls (2)
Application\Application.cs (1)
18 public partial class Application : Element, IResourcesProvider, IApplicationController, IElementConfiguration<Application>, IVisualTreeElement, IApplication
VisualElement\VisualElement.cs (1)
21 public partial class VisualElement : NavigableElement, IAnimatable, IVisualElementController, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, IWindowController, IView, IControlsVisualElement
16 references to IResourcesProvider
Microsoft.Maui.Controls (13)
Application\Application.cs (2)
143 bool IResourcesProvider.IsResourcesCreated => _resources != null; 342 if (!((IResourcesProvider)this).IsResourcesCreated || Resources.Count == 0)
Element\Element_StyleSheets.cs (4)
52 var resourceProvider = parent as IResourcesProvider; 74 var resourceProvider = child as IResourcesProvider;
ResourcesExtensions.cs (4)
14 var ve = element as IResourcesProvider; 62 if (element is IResourcesProvider ve && ve.IsResourcesCreated && ve.Resources.TryGetValue(key, out value)) 70 if (Application.Current != null && ((IResourcesProvider)Application.Current).IsResourcesCreated && Application.Current.Resources.TryGetValue(key, out value))
StyleSheets\StyleSheetExtensions.cs (1)
8 public static IEnumerable<StyleSheet> GetStyleSheets(this IResourcesProvider resourcesProvider)
VisualElement\VisualElement.cs (2)
1060 bool IResourcesProvider.IsResourcesCreated => _resources != null; 1506 if (!((IResourcesProvider)this).IsResourcesCreated || Resources.Count == 0)
Microsoft.Maui.Controls.Xaml (3)
MarkupExtensions\StaticResourceExtension.cs (2)
62 var resDict = p is IResourcesProvider irp && irp.IsResourcesCreated ? irp.Resources : p as ResourceDictionary; 76 && ((IResourcesProvider)Application.Current).IsResourcesCreated
XamlLoader.cs (1)
141 public static IResourceDictionary LoadResources(string xaml, IResourcesProvider rootView)