summaryrefslogtreecommitdiff
path: root/src/bindings/mono/efl_mono/ItemFactory.cs
blob: a97401c9aaf420c26d7cb592632953802d1d7d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#if EFL_BETA

using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;

namespace Efl.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
{
    /// <summary>Creates a new factory.
    /// </summary>
    /// <param name="parent">The parent of the factory.</param>
    public ItemFactory(Efl.Object parent = null)
        : base (parent, typeof(T))
    {
    }
}

}

#endif