Beispiel #1
0
        protected virtual void CreateBinding()
        {
            bindingList = new List <IBinding>();

            // create selector binding
            if (!UseDefaultViewSelection)
            {
                var binding = new Binding(viewSelectorPath, this, "ViewSelector", Binding.BindingMode.OneWay, Binding.ConversionMode.None, null);
                binding.SetFlags(Binding.ControlFlags.ResetTargetValue);

                bindingList.Add(binding);
            }

            // create collection binding
            collectionBinding = new CollectionBinding(collectionPath, this);
            bindingList.Add(collectionBinding);

            if (!string.IsNullOrEmpty(collectionViewPath))
            {
                // create collection view
                collectionBinding.CreateCollectionView();

                // create collection view binding
                var binding = new Binding(collectionViewPath, this, "CollectionView", Binding.BindingMode.OneWayToSource);
                binding.SetFlags(Binding.ControlFlags.ResetSourceValue);

                bindingList.Add(binding);
            }
        }
Beispiel #2
0
        public CollectionView(CollectionBinding owner)
        {
            this.owner = owner;

            // create list
            sortingList = new List <object>();
        }
Beispiel #3
0
        protected virtual void CreateBinding()
        {
            bindingList = new List <IBinding>();

            // create collection binding
            collectionBinding = new CollectionBinding(collectionPath, this);
            bindingList.Add(collectionBinding);

            if (!string.IsNullOrEmpty(collectionViewPath))
            {
                // create collection view
                collectionBinding.CreateCollectionView();

                // create collection view binding
                var binding = new Binding(collectionViewPath, this, "CollectionView", Binding.BindingMode.OneWayToSource);
                binding.SetFlags(Binding.ControlFlags.ResetSourceValue);

                bindingList.Add(binding);
            }
        }
Beispiel #4
0
 public Accessor(CollectionBinding owner)
 {
     this.owner = owner;
 }