public PlotControl() { // InitializeComponent(); DoubleBuffered = true; Model = new PlotModel(); panAction = new PanAction(this); zoomAction = new ZoomAction(this); sliderAction = new SliderAction(this); MouseActions = new List<MouseAction>(); MouseActions.Add(panAction); MouseActions.Add(zoomAction); MouseActions.Add(sliderAction); }
public PlotControl() { // InitializeComponent(); DoubleBuffered = true; Model = new PlotModel(); panAction = new PanAction(this); zoomAction = new ZoomAction(this); sliderAction = new SliderAction(this); MouseActions = new List <MouseAction>(); MouseActions.Add(panAction); MouseActions.Add(zoomAction); MouseActions.Add(sliderAction); }
private static Actor CreateScrollActor(Stage stage) { Actor scroll; PanAction panAction; scroll = new Actor(); scroll.Name = "scroll"; scroll.AddConstraint(new AlignConstraint(stage, AlignAxis.XAxis, 0)); scroll.AddConstraint(new BindConstraint(stage, BindCoordinate.Size, 0)); scroll.AddChild(CreateContentActor()); panAction = new PanAction(); panAction.Interpolate = true; panAction.Pan += OnPan; scroll.AddAction(panAction); scroll.Reactive = true; return(scroll); }
private void PanGestureRecognizer_PanUpdated(object sender, PanUpdatedEventArgs e) { PanAction?.Invoke(e); }
public override bool OnScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { PanAction?.Invoke(e1, e2, distanceX, distanceY); return(true); }
public override bool OnScroll(MotionEvent initialDown, MotionEvent currentMove, float distanceX, float distanceY) { PanAction?.Invoke(initialDown, currentMove); return(true); }