Exemple #1
0
        public void CalcRectArea()
        {
            startTextArea     = WhitodoText.TranslatePoint(new Point(0, 0), this);
            endTextArea.X     = startTextArea.X + WhitodoText.Width;
            endTextArea.Y     = startTextArea.Y + WhitodoText.Height;
            startControlArea  = RedButton.TranslatePoint(new Point(0, 0), this);
            endControlArea    = WhitodoButton.TranslatePoint(new Point(0, 0), this);
            endControlArea.X += WhitodoButton.Width;
            endControlArea.Y += WhitodoButton.Height;

            /* DEBUG INFO
             * string x = "startTextArea=" + startTextArea.X.ToString() + "," + startTextArea.Y.ToString();
             * x += "\nendTextArea=" + endTextArea.X.ToString() + "," + endTextArea.Y.ToString();
             * x += "\nstartControlArea=" + startControlArea.X.ToString() + "," + startControlArea.Y.ToString();
             * x += "\nendControlArea=" + endControlArea.X.ToString() + "," + endControlArea.Y.ToString();
             * System.Windows.MessageBox.Show(x);
             */
        }