示例#1
0
        public void BindScrollingToParentGrid(GridPointMatrix parent, PointF parentAnchor, PointF thisAnchor)
        {
            // remove any previous binding
            UnbindScrolling();

            // create new binding instance
            scrollBinding                       = new GridPointMatrixScrollBinding();
            scrollBinding.ParentGrid            = parent;
            scrollBinding.ChildGrid             = this;
            scrollBinding.ParentAnchorGridPoint = parentAnchor;
            scrollBinding.ChildAnchorGridPoint  = thisAnchor;
        }
示例#2
0
        public void UnbindScrolling()
        {
            if (scrollBinding != null)
            {
                GridPointMatrixScrollBinding._allScrollBindings.Remove(scrollBinding);

                if (scrollBinding.ParentGrid != null)
                {
                    this.scrollBinding.ParentGrid = null;
                }

                scrollBinding = null;
            }
        }
示例#3
0
        public void UnbindScrolling()
        {
            if (scrollBinding != null)
            {
                GridPointMatrixScrollBinding._allScrollBindings.Remove(scrollBinding);

                if (scrollBinding.ParentGrid != null)
                    this.scrollBinding.ParentGrid = null;

                scrollBinding = null;
            }
        }
示例#4
0
        public void BindScrollingToParentGrid(GridPointMatrix parent, PointF parentAnchor, PointF thisAnchor)
        {
            // remove any previous binding
            UnbindScrolling();

            // create new binding instance
            scrollBinding = new GridPointMatrixScrollBinding();
            scrollBinding.ParentGrid = parent;
            scrollBinding.ChildGrid = this;
            scrollBinding.ParentAnchorGridPoint = parentAnchor;
            scrollBinding.ChildAnchorGridPoint = thisAnchor;
        }