Exemple #1
0
        private Rect CalculateAssignedRC(PresentationSource source)
        {
            Rect rectElement = new Rect(m_elementAttachedTo.RenderSize);
            Rect rectRoot    = RectUtil.ElementToRoot(rectElement, m_elementAttachedTo, source);

            return(RectUtil.RootToClient(rectRoot, source));
        }