adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
568 stars 47 forks source link

Error SfTextInputLayout + VisualNodeWithAttachedPropertiesExtensions.Set(T, BindableProperty, object) #134

Closed dixboss closed 1 year ago

dixboss commented 1 year ago
[Scaffold(typeof(Syncfusion.Maui.Core.SfTextInputLayout))]
public partial class SfTextInputLayout {
    public SfTextInputLayout Content(VisualNode render) { 
        this.Set(Syncfusion.Maui.Core.SfContentView.ContentProperty,
            new MauiControls.DataTemplate(() => TemplateHost.Create(render).NativeElement));
        return this;
    }
}

Erreur CS0311 Impossible d'utiliser le type 'XXXX.Pages.SfTextInputLayout' comme paramètre de type 'T' dans le type ou la méthode générique 'VisualNodeWithAttachedPropertiesExtensions.Set(T, BindableProperty, object)

adospace commented 1 year ago

Hi, please for integration issues refer to the dedicated repository: https://github.com/adospace/mauireactor-integration

I've added the code to integrate SfTextInputLayout here: https://github.com/adospace/mauireactor-integration/blob/main/Syncfusion/SfIntApp/Controls/Syncfusion.cs

Example usage:

new SfTextInputLayout
{
    new Entry()
}
.Hint("Name")