Updated sample
This commit is contained in:
Родитель
c8a4917241
Коммит
d9485dba5c
|
@ -1,4 +1,7 @@
|
|||
using Library.Hosting;
|
||||
using Library.Controls;
|
||||
using Library.Effects;
|
||||
using Library.Hosting;
|
||||
using Microsoft.Maui.Controls.Compatibility.Hosting;
|
||||
|
||||
namespace Library.Sample
|
||||
{
|
||||
|
@ -10,7 +13,19 @@ namespace Library.Sample
|
|||
|
||||
builder
|
||||
.UseMauiApp<App>()
|
||||
.ConfigureLibrary();
|
||||
.ConfigureLibrary()
|
||||
/*
|
||||
.ConfigureEffects(effects =>
|
||||
{
|
||||
effects.Add(typeof(FocusRoutingEffect), typeof(PlatformFocusPlatformEffect));
|
||||
})
|
||||
.ConfigureMauiHandlers(handlers =>
|
||||
{
|
||||
#if __ANDROID__
|
||||
handlers.AddCompatibilityRenderer(typeof(CustomEntry), typeof(Renderers.Android.CustomEntryRenderer));
|
||||
#endif
|
||||
})
|
||||
*/;
|
||||
|
||||
return builder.Build();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using Android.App;
|
||||
using Android.Runtime;
|
||||
using Library.Handlers;
|
||||
|
||||
namespace Library.Sample
|
||||
{
|
||||
|
@ -9,6 +10,12 @@ namespace Library.Sample
|
|||
public MainApplication(IntPtr handle, JniHandleOwnership ownership)
|
||||
: base(handle, ownership)
|
||||
{
|
||||
/*
|
||||
CustomEntryHandler.CustomEntryMapper.Add("RemoveBorder", (h, w) =>
|
||||
{
|
||||
h.PlatformView.Background = null;
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
|
||||
|
|
Загрузка…
Ссылка в новой задаче