示例#1
0
        protected virtual void OnFirstColRowChanged(PointF oldPt, PointF newPt)
        {
            foreach (GridPointMatrixScrollBinding scrollBind in GridPointMatrixScrollBinding._allScrollBindings)
            {
                if (scrollBind.ParentGrid == this)
                {
                    scrollBind.ChildGrid.ScrollWithParent();
                }
            }

            if (FirstColRowChanged != null)
            {
                SourceGridPointChangedEventArgs e = new SourceGridPointChangedEventArgs(this, oldPt, newPt);
                FirstColRowChanged(e);
            }
        }
示例#2
0
 private void _MatrixColRowChanged(SourceGridPointChangedEventArgs e)
 {
     // shifting at least one Layer, so redraw entire Backbuffer
     refreshNeeded = MatrixesRefreshType.All;
 }