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; }
public void UnbindScrolling() { if (scrollBinding != null) { GridPointMatrixScrollBinding._allScrollBindings.Remove(scrollBinding); if (scrollBinding.ParentGrid != null) { this.scrollBinding.ParentGrid = null; } scrollBinding = null; } }
public void UnbindScrolling() { if (scrollBinding != null) { GridPointMatrixScrollBinding._allScrollBindings.Remove(scrollBinding); if (scrollBinding.ParentGrid != null) this.scrollBinding.ParentGrid = null; scrollBinding = null; } }