protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); RadDragDropService columnDragDropService = (RadDragDropService)(this.Data.Owner.ViewElement as DetailListViewElement).ColumnDragDropService; if (columnDragDropService.State != RadServiceState.Working && this.IsInResizeLocation(args.Location)) { return; } if (args.IsBegin) { int num = (int)this.SetValue(RadElement.IsMouseDownProperty, (object)true); columnDragDropService.BeginDrag(this.ElementTree.Control.PointToScreen(args.Location), (ISupportDrag)this); } if (columnDragDropService.State == RadServiceState.Working) { columnDragDropService.DoMouseMove(this.ElementTree.Control.PointToScreen(args.Location)); } if (args.IsEnd) { columnDragDropService.EndDrag(); int num1 = (int)this.SetValue(RadElement.IsMouseDownProperty, (object)false); int num2 = (int)this.ResetValue(RadElement.IsMouseDownProperty, ValueResetFlags.Local); } args.Handled = true; }
protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); if (this.VScrollBar.ControlBoundingRectangle.Contains(args.Location) || this.HScrollBar.ControlBoundingRectangle.Contains(args.Location)) { return; } int num1 = this.VScrollBar.Value - args.Offset.Height; if (num1 > this.VScrollBar.Maximum - this.VScrollBar.LargeChange + 1) { num1 = this.VScrollBar.Maximum - this.VScrollBar.LargeChange + 1; } if (num1 < this.VScrollBar.Minimum) { num1 = this.VScrollBar.Minimum; } this.VScrollBar.Value = num1; int num2 = this.HScrollBar.Value - args.Offset.Width; if (num2 > this.HScrollBar.Maximum - this.HScrollBar.LargeChange + 1) { num2 = this.HScrollBar.Maximum - this.HScrollBar.LargeChange + 1; } if (num2 < this.HScrollBar.Minimum) { num2 = this.HScrollBar.Minimum; } this.HScrollBar.Value = num2; args.Handled = true; }
protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); RadPanoramaElement tilePanelElement = this.FindTilePanelElement(); if (tilePanelElement == null || !this.AllowDrag) { return; } RadDragDropService dragDropService = tilePanelElement.DragDropService; if (args.IsBegin) { this.currentPanOffset = SizeF.Empty; this.panBeginLocation = this.ElementTree.Control.PointToScreen(args.Location); this.ZIndex = 1000; } if (dragDropService.State == RadServiceState.Working) { dragDropService.DoMouseMove(this.ElementTree.Control.PointToScreen(args.Location)); } else { tilePanelElement.ScrollView(args.Offset.Width, true); if (tilePanelElement.AllowDragDrop) { if (!args.IsInertia) { this.currentPanOffset.Width += (float)args.Offset.Width; this.currentPanOffset.Height += (float)args.Offset.Height; } if ((double)Math.Abs(this.currentPanOffset.Height) > (double)(this.Size.Height / this.RowSpan)) { this.PositionOffset = SizeF.Empty; this.panBeginLocation.X += (int)this.currentPanOffset.Width; dragDropService.BeginDrag(this.panBeginLocation, (ISupportDrag)this); if (dragDropService.State == RadServiceState.Working) { dragDropService.DoMouseMove(this.ElementTree.Control.PointToScreen(args.Location)); } } else { this.PositionOffset = new SizeF(0.0f, 20f * this.currentPanOffset.Height / (float)(this.Size.Height / this.RowSpan)); } } } if (args.IsEnd) { if (dragDropService.State == RadServiceState.Working) { dragDropService.EndDrag(); } this.PositionOffset = SizeF.Empty; int num = (int)this.ResetValue(RadElement.ZIndexProperty, ValueResetFlags.Local); } args.Handled = true; }
protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); if (args.Handled) { return; } this.ScrollView(args.Offset.Width, true); args.Handled = true; }
protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); if (!this.zoomedIn || args.Handled) { return; } RadTileElement elementAtPoint = this.ElementTree.GetElementAtPoint(args.Location) as RadTileElement; if (args.IsBegin && elementAtPoint != null && elementAtPoint.AllowDrag) { return; } this.ScrollView(args.Offset.Width, true); args.Handled = true; }
protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); RadDragDropService service = this.TemplateElement.GroupPanelElement.GetService <RadDragDropService>(); if (args.IsBegin && service.State != RadServiceState.Working) { service.BeginDrag(this.ElementTree.Control.PointToScreen(args.Location), (ISupportDrag)this); } if (service.State == RadServiceState.Working) { service.DoMouseMove(this.ElementTree.Control.PointToScreen(args.Location)); } if (args.IsEnd) { service.EndDrag(); } args.Handled = true; }
protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); if (this.Scroller.Scrollbar.ControlBoundingRectangle.Contains(args.Location)) { return; } int num = this.Scroller.Scrollbar.Value - (this.Orientation == Orientation.Vertical ? args.Offset.Height : args.Offset.Width); if (num > this.Scroller.Scrollbar.Maximum - this.Scroller.Scrollbar.LargeChange + 1) { num = this.Scroller.Scrollbar.Maximum - this.Scroller.Scrollbar.LargeChange + 1; } if (num < this.Scroller.Scrollbar.Minimum) { num = this.Scroller.Scrollbar.Minimum; } this.Scroller.Scrollbar.Value = num; args.Handled = true; }
protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); int num = this.scrollViewer.VScrollBar.Value - args.Offset.Height; RadScrollBarElement vscrollBar = this.scrollViewer.VScrollBar; if (vscrollBar.ControlBoundingRectangle.Contains(args.Location) || this.ElementTree.GetElementAtPoint(args.Location) is GroupFieldElement) { return; } if (num > vscrollBar.Maximum - vscrollBar.LargeChange + 1) { num = vscrollBar.Maximum - vscrollBar.LargeChange + 1; } if (num < vscrollBar.Minimum) { num = vscrollBar.Minimum; } this.scrollViewer.VScrollBar.Value = num; args.Handled = true; }
void radTilePanel1_PanGesture(object sender, PanGestureEventArgs e) { if (e.IsBegin && _titleBar.ControlBoundingRectangle.Contains(e.Location)) { _isFormMoving = true; } if (_isFormMoving) { Location = new Point(Location.X + e.Offset.Width, Location.Y + e.Offset.Height); } else { e.Handled = false; } if (e.IsEnd) { _isFormMoving = false; } }
protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); RadDragDropService service = this.serviceProvider.GetService <RadDragDropService>(); if (args.IsBegin) { int num = (int)this.SetValue(RadElement.IsMouseDownProperty, (object)true); service.BeginDrag(this.ElementTree.Control.PointToScreen(args.Location), (ISupportDrag)this); } if (service.State == RadServiceState.Working) { service.DoMouseMove(this.ElementTree.Control.PointToScreen(args.Location)); } if (args.IsEnd) { service.EndDrag(); int num1 = (int)this.SetValue(RadElement.IsMouseDownProperty, (object)false); int num2 = (int)this.ResetValue(RadElement.IsMouseDownProperty, ValueResetFlags.Local); } args.Handled = true; }
void radTilePanel1_PanGesture(object sender, PanGestureEventArgs e) { if (e.IsBegin && this.titleBar.ControlBoundingRectangle.Contains(e.Location)) { isFormMoving = true; } if (isFormMoving) { this.Location = new Point(this.Location.X + e.Offset.Width, this.Location.Y + e.Offset.Height); } else { e.Handled = false; } if (e.IsEnd) { isFormMoving = false; } }
protected override void OnPanGesture(PanGestureEventArgs args) { base.OnPanGesture(args); this.DesiredLocation = this.Orientation != Orientation.Horizontal ? new PointF(this.DesiredLocation.X, this.DesiredLocation.Y + (float)args.Offset.Height) : new PointF(this.DesiredLocation.X + (float)args.Offset.Width, this.DesiredLocation.Y); args.Handled = true; }