1 implementation of IApplication
Microsoft.Maui.Controls (1)
Application\Application.cs (1)
18
public partial class Application : Element, IResourcesProvider, IApplicationController, IElementConfiguration<Application>, IVisualTreeElement,
IApplication
52 references to IApplication
Microsoft.Maui (30)
Core\IPlatformApplication.cs (2)
29
/// <see cref="
IApplication
"/>.
31
public
IApplication
Application { get; }
Handlers\Application\ApplicationHandler.cs (18)
18
/// Represents the view handler for the abstract <see cref="
IApplication
"/> view and its platform-specific implementation.
25
public static IPropertyMapper<
IApplication
, ApplicationHandler> Mapper = new PropertyMapper<
IApplication
, ApplicationHandler>(ElementMapper)
32
public static CommandMapper<
IApplication
, ApplicationHandler> CommandMapper = new(ElementCommandMapper)
36
[nameof(
IApplication
.OpenWindow)] = MapOpenWindow,
37
[nameof(
IApplication
.CloseWindow)] = MapCloseWindow,
38
[nameof(
IApplication
.ActivateWindow)] = MapActivateWindow,
71
/// <param name="application">The associated <see cref="
IApplication
"/> instance.</param>
73
public static partial void MapTerminate(ApplicationHandler handler,
IApplication
application, object? args);
76
/// Maps the abstract <see cref="
IApplication
.OpenWindow"/> command to the platform-specific implementations.
79
/// <param name="application">The associated <see cref="
IApplication
"/> instance.</param>
81
public static partial void MapOpenWindow(ApplicationHandler handler,
IApplication
application, object? args);
84
/// Maps the abstract <see cref="
IApplication
.CloseWindow"/> command to the platform-specific implementations.
87
/// <param name="application">The associated <see cref="
IApplication
"/> instance.</param>
89
public static partial void MapCloseWindow(ApplicationHandler handler,
IApplication
application, object? args);
92
/// Maps the abstract <see cref="
IApplication
.ActivateWindow"/> command to the platform-specific implementations.
95
/// <param name="application">The associated <see cref="
IApplication
"/> instance.</param>
97
public static partial void MapActivateWindow(ApplicationHandler handler,
IApplication
application, object? args);
Handlers\Application\ApplicationHandler.Standard.cs (5)
5
public partial class ApplicationHandler : ElementHandler<
IApplication
, object>
9
public static partial void MapTerminate(ApplicationHandler handler,
IApplication
application, object? args) { }
10
public static partial void MapOpenWindow(ApplicationHandler handler,
IApplication
application, object? args) { }
11
public static partial void MapCloseWindow(ApplicationHandler handler,
IApplication
application, object? args) { }
12
public static partial void MapActivateWindow(ApplicationHandler handler,
IApplication
application, object? args) { }
Hosting\Dispatching\AppHostBuilderExtensions.cs (2)
36
var dispatcher = keyed.GetKeyedService<IDispatcher>(typeof(
IApplication
));
50
var dispatcher = keyed.GetKeyedService<IDispatcher>(typeof(
IApplication
));
Platform\ElementExtensions.cs (2)
162
public static void SetApplicationHandler(this PlatformApplication platformApplication,
IApplication
application, IMauiContext context) =>
193
while (current != null && current is not
IApplication
)
Platform\WindowExtensions.cs (1)
24
if (platformApplication.Application is not
IApplication
application)
Microsoft.Maui.Controls (16)
Application\Application.cs (12)
335
element == null || element is
IApplication
;
338
element == null || element is
IApplication
|| element is IWindow;
422
IReadOnlyList<IWindow>
IApplication
.Windows => _windows;
426
IWindow
IApplication
.CreateWindow(IActivationState? activationState)
459
void
IApplication
.OpenWindow(IWindow window)
467
void
IApplication
.CloseWindow(IWindow window)
469
Handler?.Invoke(nameof(
IApplication
.CloseWindow), window);
472
void
IApplication
.ActivateWindow(IWindow window)
511
Handler?.Invoke(nameof(
IApplication
.OpenWindow), new OpenWindowRequest(State: state));
516
Handler?.Invoke(nameof(
IApplication
.CloseWindow), window);
521
Handler?.Invoke(nameof(
IApplication
.ActivateWindow), window);
524
void
IApplication
.ThemeChanged()
Hosting\AppHostBuilderExtensions.cs (4)
38
where TApp : class,
IApplication
41
builder.Services.TryAddSingleton<
IApplication
, TApp>();
55
where TApp : class,
IApplication
57
builder.Services.TryAddSingleton<
IApplication
>(implementationFactory);
Microsoft.Maui.Controls.Compatibility (2)
AppHostBuilderExtensions.Embedding.cs (2)
13
where TApp : class,
IApplication
17
where TApp : class,
IApplication
Microsoft.Maui.Controls.Xaml (4)
Embedding\EmbeddingExtensions.cs (2)
20
where TApp : class,
IApplication
37
where TApp : class,
IApplication
Hosting\AppHostBuilderExtensions.cs (2)
16
where TApp : class,
IApplication
31
where TApp : class,
IApplication