Closed MattePozzy closed 1 year ago
Using the latest version you can scaffold SfListView and use it with a code like this:
[Scaffold(typeof(Syncfusion.Maui.Core.SfView))]
public abstract class SfView { }
[Scaffold(typeof(Syncfusion.Maui.ListView.SfListView), implementItemTemplate: true)]
public partial class SfListView
{
}
class MainPageState
{
public List<string> Items { get; set; } = new List<string>(new[] { "Item1", "Item2" });
}
new SfListView()
.ItemsSource(State.Items, item => new Label(item))
Hi, I have create this scaffolded component
but it hasn't created the method ItemsSource, so I have creted it
the original components has the ItemTemplate method that has as parameters a datatemplate.
I need to have a method like the ItemTemplate that accepts a VisualNode but also that receive the current item of the listView, in such a way that I can assign the property of the current item to label, button and so on.
I have tried to do this, but doesn't work
The original method use the Binding to set the value of labels ecc..
How can I do this?
Thank you.