Skip to content

Getting Started

Håvard Moås edited this page Apr 25, 2023 · 14 revisions

Builder

In your MauiProgram.cs:

public static Microsoft.Maui.Hosting.MauiApp CreateMauiApp()
{
    var builder = Microsoft.Maui.Hosting.MauiApp.CreateBuilder();
    builder
        .UseMauiApp<App>()
        .UseDIPSUI()
        ...
}

Platforms

Android

To get the DIPS Android style (colors and splash screen etc), you will have to modify your Style annotation in MainActivity.cs:

[Activity(Theme = "@style/DIPS.Mobile.UI.Style", MainLauncher = true,
    ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode |
                           ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
{
}

Clone this wiki locally