Example #1
0
        protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
        {
            MultiPanePageDesigner selectedPageDesigner = this.GetSelectedPageDesigner();

            if (selectedPageDesigner != null)
            {
                selectedPageDesigner.InternalOnGiveFeedback(e);
            }
        }
Example #2
0
        protected override void OnDragLeave(EventArgs theArgs)
        {
            MultiPanePageDesigner selectedPageDesigner = this.GetSelectedPageDesigner();

            if (selectedPageDesigner != null)
            {
                selectedPageDesigner.InternalOnDragLeave(theArgs);
            }
        }
Example #3
0
        private MultiPanePageDesigner GetSelectedPageDesigner()
        {
            MultiPanePage mySelectedPage = this.mySelectedPage;

            if (mySelectedPage == null)
            {
                return(null);
            }
            MultiPanePageDesigner designer = null;
            IDesignerHost         service  = (IDesignerHost)this.GetService(typeof(IDesignerHost));

            if (service != null)
            {
                designer = (MultiPanePageDesigner)service.GetDesigner(mySelectedPage);
            }
            return(designer);
        }
Example #4
0
        protected override void OnDragOver(DragEventArgs theDragEvents)
        {
            MultiPaneControl designedControl = this.DesignedControl;
            Point            pt = designedControl.PointToClient(new Point(theDragEvents.X, theDragEvents.Y));

            if (!designedControl.DisplayRectangle.Contains(pt))
            {
                theDragEvents.Effect = DragDropEffects.None;
            }
            else
            {
                MultiPanePageDesigner selectedPageDesigner = this.GetSelectedPageDesigner();
                if (selectedPageDesigner != null)
                {
                    selectedPageDesigner.InternalOnDragOver(theDragEvents);
                }
            }
        }