Exemplo n.º 1
0
 /// <summary>
 ///  Invalidates the transparent AdornerWindow by asking the Designer Frame beneath it to invalidate.
 ///  Note the they use of the .Update() call for perf. purposes.
 /// </summary>
 internal void InvalidateAdornerWindow()
 {
     if (DesignerFrameValid)
     {
         DesignerFrame.Invalidate(true);
         DesignerFrame.Update();
     }
 }
Exemplo n.º 2
0
            /// <summary>
            ///  Invalidates the transparent AdornerWindow by asking the Designer Frame beneath it to invalidate.
            ///  Note the they use of the .Update() call for perf. purposes.
            /// </summary>
            internal void InvalidateAdornerWindow(Rectangle rectangle)
            {
                if (DesignerFrameValid)
                {
                    // Translate for non-zero scroll positions
                    Point scrollPosition = ((DesignerFrame)DesignerFrame).AutoScrollPosition;
                    rectangle.Offset(scrollPosition.X, scrollPosition.Y);

                    DesignerFrame.Invalidate(rectangle, true);
                    DesignerFrame.Update();
                }
            }