Material Theme
This is an implementation of the Material Theme for the Uranium UI. Visit Material Design Guideline for more information.
Material controls include focus-aware input fields, button states, selection controls, and custom surfaces that can be used in keyboard-heavy apps. When building custom cards, tab headers, data-grid cells, or overlay actions, follow the Accessibility and Clickable Areas best practices.
Installation
Install the UraniumUI.Material NuGet package.
Go to MauiProgram.cs and call
UseUraniumUIMaterial()method in builder chain.builder .UseMauiApp<App>() .UseUraniumUI() .UseUraniumUIMaterial() // 👈 This line should be added. .ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); });
Order of calling
UseUraniumUI()andUseUraniumUIMaterial()is not important. But both should be called.