5 using System.Runtime.InteropServices;
6 using System.Collections.Generic;
8 using System.ComponentModel;
10 namespace Efl { namespace Ui {
12 /// <summary>Helper factory class. Makes use of C# extension methods for easier property binding.
15 /// var factory = Efl.Ui.Factory<Efl.Ui.Button>();
16 /// factory.Style().Bind("Name"); // The factory Style property is bound to the Name property for the given model.
20 public class ItemFactory<T> : Efl.Ui.CachingFactory, IDisposable
22 /// <summary>Creates a new factory.</summary>
23 public ItemFactory(Efl.Object parent = null)
24 : base (parent, typeof(T))