Esempio n. 1
0
        /// <inheritdoc/>
        protected override void OnMouseMove(MouseDevice device, Double x, Double y, Double dx, Double dy, ref RoutedEventData data)
        {
            if (PART_Editor != null)
            {
                PART_Editor.HandleMouseMove(device, ref data);
            }

            data.Handled = true;
            base.OnMouseMove(device, x, y, dx, dy, ref data);
        }
        /// <inheritdoc/>
        protected override void OnPreviewMouseMove(MouseDevice device, Double x, Double y, Double dx, Double dy, RoutedEventData data)
        {
            if (PART_Editor != null)
            {
                var capture = Mouse.GetCaptured(View);
                if (capture == null || capture == this)
                {
                    PART_Editor.HandleMouseMove(device, data);
                    data.Handled = true;
                }
            }

            base.OnPreviewMouseMove(device, x, y, dx, dy, data);
        }