Beispiel #1
0
        private void OnCanvasMouseDown(object sender, MouseButtonEventArgs e)
        {
            //if (e.LeftButton == MouseButtonState.Pressed)
            //{
            var pos      = e.GetPosition(LadderCanvas);
            var intPoint = IntPoint.GetIntpointByDouble(pos.X, pos.Y, 300);

            if (!IsSingleSelected())
            {
                AcquireSelectRect();
            }
            _parent.SelectionRect.X = intPoint.X;
            _parent.SelectionRect.Y = intPoint.Y;
//}
        }