DevExpress MAUI hozzáadása
This commit is contained in:
@@ -7,6 +7,9 @@ using CommunityToolkit.Maui;
|
||||
using WorkFlowCheck.MAUI.DataLayer;
|
||||
using WorkFlowCheck.MAUI.Mapper;
|
||||
using WorkFlowCheck.MAUI.Services.Interfaces;
|
||||
using DevExpress.Maui;
|
||||
using Microsoft.Maui.Controls.Hosting;
|
||||
using Microsoft.Maui.Hosting;
|
||||
|
||||
namespace WorkFlowCheck.MAUI
|
||||
{
|
||||
@@ -15,6 +18,9 @@ namespace WorkFlowCheck.MAUI
|
||||
public static MauiApp CreateMauiApp()
|
||||
{
|
||||
var builder = MauiApp.CreateBuilder();
|
||||
builder.UseDevExpress(useLocalization: false)
|
||||
.UseDevExpressControls()
|
||||
.UseDevExpressCollectionView();
|
||||
builder.Services.AddAutoMapper(typeof(MapperProfile));
|
||||
// appsettings.json beállítása
|
||||
string jsonFilePath = Path.Combine(FileSystem.AppDataDirectory, "appsettings.json");
|
||||
@@ -42,12 +48,14 @@ namespace WorkFlowCheck.MAUI
|
||||
builder.Services.AddSingleton<IBaseStockService, BaseStockService>();
|
||||
|
||||
builder.Services.AddTransient<MainPage>();
|
||||
|
||||
builder.UseMauiApp<App>().ConfigureFonts(fonts =>
|
||||
{
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
||||
}).UseMauiCommunityToolkit();
|
||||
|
||||
builder.UseMauiApp<App>()
|
||||
.UseDevExpressEditors()
|
||||
.ConfigureFonts(fonts =>
|
||||
{
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
|
||||
}).UseMauiCommunityToolkit();
|
||||
#if DEBUG
|
||||
builder.Logging.AddDebug();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user