Exemple #1
0
        public void BindList <TComponent, TData>(TComponent component, ObservableList <TData> property,
                                                 Action <TComponent, TData> onShow = null, Action <TComponent, TData> onHide = null) where TComponent : Object
        {
            var bind = new BindList <TComponent, TData>(component, property, onShow, onHide);

            Binds.Add(bind);
        }
Exemple #2
0
        public void BindList <TComponent, TData>(TComponent component, ObservableList <TData> property,
                                                 Action <TComponent, TData> onCreate = null, Action <TComponent, TData> onDestroy = null) where TComponent : Object
        {
            BindList <TComponent, TData> bind;

            if (CacheBinds.Count > 0)
            {
                bind = (BindList <TComponent, TData>)CacheBinds.Dequeue();
            }
            else
            {
                bind = new BindList <TComponent, TData>(Container);
            }
            bind.Reset(component, property, onCreate, onDestroy);
            AddClearable(bind);
        }
Exemple #3
0
 public void BindList <TComponent, TData>(TComponent component, BindableList <TData> property)
 {
     var bindList = new BindList <TComponent, TData>(component, property);
 }