1 implementation of MauiContext
Microsoft.Maui (1)
Handlers\Element\ElementHandler.cs (1)
27 public IMauiContext? MauiContext { get; private set; }
21 references to MauiContext
Microsoft.Maui (6)
Handlers\ElementHandlerExtensions.cs (1)
27 var context = handler.MauiContext ??
Platform\ElementExtensions.cs (4)
67 if (handler?.MauiContext != null && handler.MauiContext != context) 145 if (handler?.MauiContext != null && handler.MauiContext != context)
TaskExtensions.cs (1)
58 elementHandler?.MauiContext?.Services?.CreateLogger<T>();
Microsoft.Maui.Controls (12)
Application\Application.cs (1)
420 _logger ??= Handler?.MauiContext?.CreateLogger<Application>();
Element\Element.cs (1)
960 EffectsFactory EffectsFactory => _effectsFactory ??= Handler.MauiContext.Services.GetRequiredService<EffectsFactory>();
RadioButton\RadioButton.Mapper.cs (1)
10 IMauiContext MauiContext => Handler?.MauiContext ?? throw new InvalidOperationException("MauiContext not set");
Toolbar\Toolbar.Mapper.cs (1)
14 IMauiContext MauiContext => Handler?.MauiContext ?? throw new InvalidOperationException("MauiContext not set");
ViewExtensions.cs (6)
309 if (element is Maui.IElement fe && fe.Handler?.MauiContext != null) 310 return fe.Handler.MauiContext; 314 if (parent is Maui.IElement parentView && parentView.Handler?.MauiContext != null) 315 return parentView.Handler.MauiContext; 514 if (currentPage.Handler?.MauiContext is IMauiContext mauiContext) 520 return window.Handler?.MauiContext;
Window\Window.cs (2)
317 Handler?.MauiContext ?? throw new InvalidOperationException("MauiContext is null."); 593 var mauiContext = args?.NewHandler?.MauiContext;
Microsoft.Maui.Controls.Foldable (2)
DualScreenInfo.cs (1)
50 _dualScreenService ?? Element?.Handler?.MauiContext?.Services?.GetService<IFoldableService>();
TwoPaneViewLayoutGuide.cs (1)
25 _dualScreenService = _layout?.Handler?.MauiContext?.Services?.GetService<IFoldableService>();
Microsoft.Maui.Maps (1)
src\Core\src\TaskExtensions.cs (1)
58 elementHandler?.MauiContext?.Services?.CreateLogger<T>();