23 lines
593 B
C#
23 lines
593 B
C#
|
|
using gehGassi.Toolkit.Handlers.ContentButton;
|
|
using gehGassi.Toolkit.Views.ContentButton;
|
|
|
|
namespace gehGassi.Toolkit.Extensions
|
|
{
|
|
/// <summary>
|
|
/// Hilfsmethode für die Konfiguration des Toolkits
|
|
/// </summary>
|
|
public static class AppHostBuilderExtensions
|
|
{
|
|
public static MauiAppBuilder UseToolkit(this MauiAppBuilder builder)
|
|
{
|
|
builder.ConfigureMauiHandlers(handlers =>
|
|
{
|
|
handlers.AddHandler(typeof(ContentButton), typeof(ContentButtonHandler));
|
|
});
|
|
|
|
return builder;
|
|
}
|
|
}
|
|
}
|