/// <summary>
 /// Shows control on popup at specified location with specified popup resize edges.
 /// </summary>
 public void Show(Control control, int x, int y, ePopupResizeEdge resizeEdge)
 {
     Show(control, x, y, -1, -1, resizeEdge);
 }
        /// <summary>
        /// Shows control on popup at specified location and size with specified popup resize edges.
        /// </summary>
        public void Show(Control control, int x, int y, int width, int height, ePopupResizeEdge resizeEdge)
        {
            Size controlSize = control.Size;

            InitializeHost(control);

            _PopupControlHost.ResizeEdge = resizeEdge;
            _PopupControlHost.Show(x, y, width, height);

            control.Focus();
        }
 public bool IsResizeEnabled(ePopupResizeEdge edge)
 {
     return (ResizeEdge & edge) == edge;
 }