forked from reactiveui/ReactiveUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMauiProgram.cs
More file actions
27 lines (23 loc) · 896 Bytes
/
MauiProgram.cs
File metadata and controls
27 lines (23 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.
namespace ReactiveUI.Samples.Maui;
/// <summary>
/// MAUI application entry point demonstrating ReactiveUI builder initialization.
/// </summary>
public static class MauiProgram
{
/// <summary>
/// Creates and configures the MAUI application with ReactiveUI support.
/// </summary>
/// <returns>The configured <see cref="MauiApp"/>.</returns>
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseReactiveUI(rxBuilder => rxBuilder.WithMaui());
return builder.Build();
}
}