Implemented interface member:
property
MauiContext
Microsoft.Maui.IElementHandler.MauiContext
1 write to MauiContext
Microsoft.Maui (1)
Handlers\Element\ElementHandler.cs (1)
36 MauiContext = mauiContext;
6 references to MauiContext
Microsoft.AspNetCore.Components.WebView.Maui (1)
BlazorWebViewHandler.cs (1)
45 internal BlazorWebViewDeveloperTools DeveloperTools => MauiContext!.Services.GetRequiredService<BlazorWebViewDeveloperTools>();
Microsoft.Maui (5)
Handlers\Application\ApplicationHandler.cs (1)
60 _logger ??= MauiContext?.Services.CreateLogger<ApplicationHandler>();
Handlers\Element\ElementHandler.cs (1)
29 public IServiceProvider? Services => MauiContext?.Services;
Handlers\ElementHandlerExtensions.cs (2)
28 throw new InvalidOperationException($"Unable to find the context. The {nameof(ElementHandler.MauiContext)} property should have been set by the host."); 31 throw new InvalidOperationException($"Unable to find the service provider. The {nameof(ElementHandler.MauiContext)} property should have been set by the host.");
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
91 internal HybridWebViewDeveloperTools DeveloperTools => MauiContext?.Services.GetService<HybridWebViewDeveloperTools>() ?? new HybridWebViewDeveloperTools();