33 lines
748 B
C#
33 lines
748 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<Efl.Ui.Button>();
|
|
/// factory.Style().Bind("Name"); // The factory Style property is bound to the Name property for the given model.
|
|
/// </code>
|
|
///
|
|
/// Since EFL 1.23.
|
|
///
|
|
/// </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
|