Implemented interface member:
property
MauiContext
Microsoft.Maui.IElementHandler.MauiContext
1 write to MauiContext
Microsoft.Maui (1)
Handlers\Element\ElementHandler.cs (1)
36
MauiContext
= mauiContext;
8 references to MauiContext
Microsoft.AspNetCore.Components.WebView.Maui (1)
BlazorWebViewHandler.cs (1)
45
internal BlazorWebViewDeveloperTools DeveloperTools =>
MauiContext
!.Services.GetRequiredService<BlazorWebViewDeveloperTools>();
Microsoft.Maui (6)
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 (2)
94
internal HybridWebViewDeveloperTools DeveloperTools =>
MauiContext
?.Services.GetService<HybridWebViewDeveloperTools>() ?? new HybridWebViewDeveloperTools();
199
MauiContext
?.CreateLogger<HybridWebViewHandler>()?.LogError(ex, "An error occurred while invoking a .NET method from JavaScript: {ErrorMessage}", ex.Message);
Microsoft.Maui.Controls.Compatibility (1)
RendererToHandlerShim.cs (1)
120
if (this.
MauiContext
== null && currentContext != null)