The MAUI MaterialFrame aims at delivering out of the box modern popular theming such as: * Light * Dark * Acrylic * AcrylicBlur The AcrylicBlur theme also provides three different blur styles inherited from the iOS UIVisualEffectView: * Light * ExtraLight * Dark On Android, the blur is implemented with StackBlur algorithm - a pure C# implementation that works on all Android versions including 15+ with 16KB page size. ## Installation * In Core project, in `MauiProgram.cs`: ```csharp public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder .UseMauiApp() .UseSharpnadoMaterialFrame(loggerEnabled: false); } ```
$ dotnet add package Sharpnado.MaterialFrame.Maui| Supported platforms |
|---|
| :heavy_check_mark: Android |
| :heavy_check_mark: iOS |
| :question: macOS |
| :heavy_check_mark: WinUI |
MauiProgram.cs:public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseSharpnadoMaterialFrame(loggerEnable: false)
...
}
But it should be working :) ?
Warning, because of LayerDrawable the Acrylic glow effect (the white glow on the top of the MaterialFrame is only available on API 23+ (since Marshmallow).
For some yet to be discovered reasons, AcrylicBlur value doesn't work in a dynamic context on iOS.
You can change the BlurStyle dynamically, but a dynamic change from a not blurry theme to the AcrylicBlur theme will result in a transparent frame.
The Xamarin.Forms MaterialFrame aims at delivering out of the box modern popular theming such as:
You can switch from one theme to another thanks to the MaterialFrame property.