Beispiel #1
0
        public CollectionBindingSubscriber <T> RegisterCollection <T>(BindingInfo info)
        {
            var binding = new CollectionBinding <T>(info, context);

            bindings.Add(binding);
            return(new CollectionBindingSubscriber <T>(binding));
        }
Beispiel #2
0
 protected CollectionBindingProcessor(BindingInfo bindingInfo, Component context)
 {
     processedCollection = new ObservableCollection <TTo>();
     ViewModel           = new OperatorCollectionViewModel <TTo>(processedCollection);
     collectionBinding   = new CollectionBinding <TFrom>(bindingInfo, context);
     collectionBinding.Property.Reset        += BoundCollectionResetHandler;
     collectionBinding.Property.ItemAdded    += BoundCollectionItemAddedHandler;
     collectionBinding.Property.ItemReplaced += BoundCollectionItemReplacedHandler;
     collectionBinding.Property.ItemRemoved  += BoundCollectionItemRemovedHandler;
     collectionBinding.Property.ItemMoved    += BoundCollectionItemMovedHandler;
 }