Ejemplo n.º 1
0
        public Point GetLocationRelativeToOutmostPanel(Point location)
        {
            StateContainerEditor designer      = StateContainerEditor.GetVisualAncestor <StateContainerEditor>(this);
            StateContainerEditor outmostEditor = designer.GetOutmostStateContainerEditor();

            return(this.TranslatePoint(location, outmostEditor.Panel));
        }
Ejemplo n.º 2
0
        internal bool IsOutmostPanel()
        {
            StateContainerEditor designer = StateContainerEditor.GetVisualAncestor <StateContainerEditor>(this);

            if (designer != null)
            {
                StateContainerEditor outmostEditor = designer.GetOutmostStateContainerEditor();
                return(outmostEditor != null && this == outmostEditor.Panel);
            }
            return(false);
        }