Ejemplo n.º 1
0
        /// <summary>
        /// Undock the view
        /// </summary>
        /// <param name="view">view</param>
        public void Undock(FormsTabbedView view)
        {
            Point mousePosition = _host.PointToClient(Control.MousePosition);

            DockingContainer container = (DockingContainer)view.Parent;
            Rectangle        bounds    = _host.GetBoundsInHost(container);

            ComputeFloatingBounds(mousePosition, view.FloatingSize, ref bounds);

            Undock(view, bounds);
        }