예제 #1
0
        protected override void OnManipulationCompleted(ManipulationCompletedEventArgs e)
        {
            if (GlobalKeyboard.ModKeys == ModifierKeys.None && ItemsDragable && pressedState == MouseStates.WindowPressed)
            {
                if (dragTo > -1)
                {
                    controller.DoDrag(dragTo);
                }
                else if (controller.IsSelectedIndex(MouseoverIndex))
                {
                    controller.Select(SelectionMode.One, MouseoverIndex);
                }
            }

            dragTo = -1;

            touchMovementStarted = false;
            Pressed           = false;
            touchManipulating = false;
            base.OnManipulationCompleted(e);
        }