efl/src/bindings/mono/efl_mono/Factory.cs

31 lines
724 B
C#

#if EFL_BETA
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;
namespace Efl { namespace Ui {
/// <summary>Helper factory class. Makes use of C# extension methods for easier property binding.
///
/// <code>
/// var factory = Efl.Ui.Factory&lt;Efl.Ui.Button&gt;();
/// factory.Style().Bind("Name"); // The factory Style property is bound to the Name property for the given model.
/// </code>
///
/// </summary>
public class ItemFactory<T> : Efl.Ui.LayoutFactory, IDisposable
{
/// <summary>Creates a new factory.</summary>
public ItemFactory(Efl.Object parent = null)
: base (parent, typeof(T))
{
}
}
} }
#endif