예제 #1
0
        protected override void OnDragEnd(DragEndEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return;
            }

            if (isDraggingBlueprint)
            {
                changeHandler?.EndChange();
                isDraggingBlueprint = false;
            }

            if (DragBox.State == Visibility.Visible)
            {
                DragBox.Hide();
                selectionHandler.UpdateVisibility();
            }
        }
예제 #2
0
        private void DragEnd()
        {
            if (View.Dispatcher.CheckAccess())
            {
                switch (_thisViewPosition)
                {
                case ViewPosition.LetfEdge:
                    View.SetWindowPosition(View.Top, View.WindowWidth -
                                           View.Width + viewGrid.Width
                                           + View.DragRect.Width);
                    break;

                case ViewPosition.RightEdge:
                    View.SetWindowPosition(View.Top, -viewGrid.Width - 10);
                    break;
                }
            }
            else
            {
                DragEndEvent dragEnd = DragEnd;
                View.Dispatcher.Invoke(dragEnd);
            }
        }
예제 #3
0
        protected override void OnDragEnd(DragEndEvent e)
        {
            if (e.Button == MouseButton.Right)
            {
                return;
            }

            if (isDraggingBlueprint)
            {
                // handle positional change etc.
                foreach (var obj in selectedHitObjects)
                {
                    Beatmap.Update(obj);
                }

                changeHandler?.EndChange();
            }

            if (DragBox.State == Visibility.Visible)
            {
                DragBox.Hide();
            }
        }
 private void endArrangement(RearrangeableListItem <TModel> item, DragEndEvent e) => currentlyDraggedItem = null;
예제 #5
0
 public virtual void OnToolDragEnd(DragEndEvent e)
 {
 }
예제 #6
0
 public override bool OnDragEnd(DragEndEvent e)
 {
     return(onDragEnd != null && onDragEnd(e));
 }
예제 #7
0
 protected override bool OnDragEnd(DragEndEvent e) => true;
예제 #8
0
 protected override bool OnDragEnd(DragEndEvent e)
 {
     isDragging = false;
     return(base.OnDragEnd(e));
 }
예제 #9
0
 protected override bool OnDragEnd(DragEndEvent e)
 {
     placementControlPointIndex = null;
     return(true);
 }
예제 #10
0
 protected override void OnDragEnd(DragEndEvent e) => CurrentlyDragging     = false;
예제 #11
0
파일: ChatOverlay.cs 프로젝트: zi-jing/osu
 protected override void OnDragEnd(DragEndEvent e)
 {
     isDragging = false;
     base.OnDragEnd(e);
 }
 protected override void OnDragEnd(DragEndEvent e) => EndArrangement?.Invoke(this, e);
예제 #13
0
 protected override void OnDragEnd(DragEndEvent e) => DragEnded?.Invoke();
예제 #14
0
 protected override void OnDragEnd(DragEndEvent e)
 {
     DragEndEvent(e);
     base.OnDragEnd(e);
 }
예제 #15
0
 public virtual bool OnDragEnd(DragEndEvent e)
 {
     return(false);
 }
예제 #16
0
            protected override void OnDragEnd(DragEndEvent e)
            {
                base.OnDragEnd(e);

                OnDragHandled?.Invoke(null);
            }
예제 #17
0
파일: DragBox.cs 프로젝트: Kontort/OsuKyzer
 protected override bool OnDragEnd(DragEndEvent e)
 {
     this.FadeOut(250, Easing.OutQuint);
     DragEnd?.Invoke();
     return(true);
 }
예제 #18
0
 protected override void OnDragEnd(DragEndEvent e)
 {
     handleMouseInput(e.ScreenSpaceMousePosition);
 }
예제 #19
0
 protected override void OnDragEnd(DragEndEvent e) => changeHandler?.EndChange();
예제 #20
0
 protected override void OnDragEnd(DragEndEvent e)
 {
     PlaylistDragActive.Value = false;
     base.OnDragEnd(e);
 }
예제 #21
0
파일: Camera.cs 프로젝트: Syudagye/GDE
 protected override bool OnDragEnd(DragEndEvent e)
 {
     return(true);
 }
예제 #22
0
 protected override void OnDragEnd(DragEndEvent e)
 {
     placementControlPointIndex = null;
 }
예제 #23
0
 protected override void OnDragEnd(DragEndEvent e)
 {
     base.OnDragEnd(e);
     lastDragEvent = null;
 }
예제 #24
0
 protected override bool OnDragEnd(DragEndEvent e)
 {
     closeIfOutside(e);
     return(base.OnDragEnd(e));
 }
예제 #25
0
 public void NotifyDragEnd(DragEndEvent eventArgs)
 {
     OnDragEnd?.Invoke(this, eventArgs);
 }
예제 #26
0
 protected override void OnDragEnd(DragEndEvent e)
 {
     dragAlert.Hide();
     base.OnDragEnd(e);
 }
예제 #27
0
 protected override void OnDragEnd(DragEndEvent e)
 {
     this.MoveTo(Vector2.Zero, 800, Easing.OutElastic);
     base.OnDragEnd(e);
 }
예제 #28
0
 protected override void OnDragEnd(DragEndEvent e)
 {
     base.OnDragEnd(e);
     cumulativeRotation.Value = null;
 }
예제 #29
0
 protected override bool OnDragEnd(DragEndEvent e)
 {
     this.MoveTo(Vector2.Zero, 800, Easing.OutElastic);
     return(base.OnDragEnd(e));
 }
예제 #30
0
 protected override void OnDragEnd(DragEndEvent e)
 {
     Flash();
     Success();
     base.OnDragEnd(e);
 }