示例#1
0
 /// <summary>
 /// Updates the image of the control, used to render the node when <see cref="Editing"/>
 /// is turned off.
 /// </summary>
 /// <remarks>
 /// Inheritors can override this method to modify how the image is generated for a
 /// given control.
 /// </remarks>
 public virtual void UpdateImage()
 {
     if (control.Parent == null)
     {
         image = PXUtil.OffscreenGrab(control);
     }
     else
     {
         image = PXUtil.GrabControl(control);
     }
 }
示例#2
0
        /// <summary>
        /// Generates an image that represents the control to be used when
        /// the control is unmapped.
        /// </summary>
        /// <returns></returns>
        protected virtual Image GenerateImage()
        {
            Image i;

            if (control.Parent == null)
            {
                i = PXUtil.OffscreenGrab(control);
            }
            else
            {
                i = PXUtil.GrabControl(control);
            }

            return(i);
        }