protected override void OnZoomGesture(ZoomGestureEventArgs args) { if (!this.enableZooming) { return; } if (args.IsBegin) { this.currentZoom = 1.0; } this.currentZoom *= args.ZoomFactor; if (this.currentZoom < 0.75) { this.ZoomOut(); } else if (this.currentZoom > 1.25) { this.ZoomIn(args.Location); } if (args.IsEnd) { this.currentZoom = 1.0; } args.Handled = true; }
private void Zoomed(object sender, GestureEventArgs e) { ZoomGestureEventArgs args = (ZoomGestureEventArgs)e; Img.Width *= args.ZoomFactorFromLast; Img.Height *= args.ZoomFactorFromLast; }
protected override void OnZoomGesture(ZoomGestureEventArgs args) { base.OnZoomGesture(args); if (args.IsBegin) { this.zoomedColumnWidth = (double)this.Data.Width; } this.zoomedColumnWidth *= args.ZoomFactor; this.Data.Width = (float)(int)this.zoomedColumnWidth; args.Handled = true; }
protected override void OnZoomGesture(ZoomGestureEventArgs args) { base.OnZoomGesture(args); if (this.RowInfo == null) { return; } if (args.IsBegin) { this.zoomedRowHeight = (double)this.RowInfo.GetActualHeight((IGridView)this.TableElement); } this.zoomedRowHeight *= args.ZoomFactor; this.RowInfo.Height = (int)this.zoomedRowHeight; args.Handled = true; }