adospace / reactorui-maui

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

SfTextInputLayout doesn't render #145

Closed MattePozzy closed 10 months ago

MattePozzy commented 10 months ago

Hi, I have tried to use the SfTextInputLayout of Syncfusion components (https://help.syncfusion.com/maui/textinputlayout/getting-started) but it doesn't render in Reactor MAUI.

I have use this code:

[Scaffold(typeof(Syncfusion.Maui.Core.SfView))]
public abstract class SfView { }

[Scaffold(typeof(Syncfusion.Maui.Inputs.SfMaskedEntry))]
public partial class SfMaskedEntry { }

[Scaffold(typeof(Syncfusion.Maui.Core.SfContentView))]
public abstract class SfContentView { }

[Scaffold(typeof(Syncfusion.Maui.Core.SfTextInputLayout))]
public partial class SfTextInputLayout { }

And also tried this:

[Scaffold(typeof(Syncfusion.Maui.Core.SfTextInputLayout))]
    public partial class SfTextInputLayout
    {
        public SfTextInputLayout Content(Func<VisualNode> render)
        {
            this.Set(Syncfusion.Maui.Core.SfTextInputLayout.ContentProperty,
                new MauiControls.DataTemplate(() => TemplateHost.Create(render()).NativeElement));

            return this;
        }
    }

image

Here a repo.

adospace commented 10 months ago

this is an example of how to use the Syncfusion library: https://github.com/adospace/mauireactor-integration/blob/main/Syncfusion/SfIntApp/Controls/Syncfusion.cs https://github.com/adospace/mauireactor-integration/blob/main/Syncfusion/SfIntApp/Pages/MainPage.cs

use that repo to ask about problems on third-party control integrations, Thanks