728x90
SetDefaultStatusBarAppearance : 상태바 (상단)
SetDefaultNavigationBarAppearance : 액션바 (하단)
using SimpleToolkit.Core;
namespace Maui.SimpleToolKitTest
{
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseSimpleToolkit()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
#if ANDROID
builder.SetDefaultStatusBarAppearance(color: Color.FromRgb(26, 129, 197), lightElements: false);
builder.SetDefaultNavigationBarAppearance(color: Colors.White, lightElements: false);
#endif
return builder.Build();
}
}
}
적용전 => 적용후 (상/하단의 Bar 색상이 변경됨)
728x90
'C# > Xamarin Maui' 카테고리의 다른 글
[.NET MAUI] CommunityToolkit.Maui - AnimationBehavior (0) | 2022.09.23 |
---|---|
[.NET MAUI] CommunityToolkit.Maui - StatusBarBehavior 상태바 변경 (0) | 2022.09.22 |
[.NET MAUI] SimpleToolkit.Core - 앱 화면 상태바까지 확장하기 (0) | 2022.09.21 |
[.NET MAUI] SimpleToolkit.Core - Button Custom Design (0) | 2022.09.21 |
[.NET MAUI] SimpleToolkit.Core - Icon (0) | 2022.09.21 |