/// <summary> /// Sets the cursor type. /// </summary> /// <param name="cursorType">The cursor type.</param> public void SetCursorType(CursorType cursorType) { switch (cursorType) { case CursorType.Pan: this.Cursor = this.PanCursor; break; case CursorType.ZoomRectangle: this.Cursor = this.ZoomRectangleCursor; break; case CursorType.ZoomHorizontal: this.Cursor = this.ZoomHorizontalCursor; break; case CursorType.ZoomVertical: this.Cursor = this.ZoomVerticalCursor; break; default: this.Cursor = Cursors.Arrow; break; } }
/// <summary> /// Sets the cursor type. /// </summary> /// <param name="cursorType">The cursor type.</param> public void SetCursorType(OxyPlot.CursorType cursorType) { switch (cursorType) { case OxyPlot.CursorType.Pan: this.GdkWindow.Cursor = this.PanCursor; break; case OxyPlot.CursorType.ZoomRectangle: this.GdkWindow.Cursor = this.ZoomRectangleCursor; break; case OxyPlot.CursorType.ZoomHorizontal: this.GdkWindow.Cursor = this.ZoomHorizontalCursor; break; case OxyPlot.CursorType.ZoomVertical: this.GdkWindow.Cursor = this.ZoomVerticalCursor; break; default: this.GdkWindow.Cursor = new Cursor(CursorType.Arrow); break; } }
/// <summary> /// Sets the cursor type. /// </summary> /// <param name="cursorType">The cursor type.</param> public void SetCursorType(CursorType cursorType) { switch (cursorType) { case CursorType.Pan: Cursor = PanCursor; break; case CursorType.ZoomRectangle: Cursor = ZoomRectangleCursor; break; case CursorType.ZoomHorizontal: Cursor = ZoomHorizontalCursor; break; case CursorType.ZoomVertical: Cursor = ZoomVerticalCursor; break; default: Cursor = Cursor.Default; break; } }
/// <summary> /// Sets the cursor. /// </summary> /// <param name="cursor">The cursor.</param> public void SetCursorType(OxyPlot.CursorType cursor) { var type = Cursors.Arrow; switch (cursor) { case OxyPlot.CursorType.Default: type = null; break; case OxyPlot.CursorType.Pan: type = Cursors.Hand; break; case OxyPlot.CursorType.ZoomHorizontal: type = Cursors.SizeWE; break; case OxyPlot.CursorType.ZoomVertical: type = Cursors.SizeNS; break; case OxyPlot.CursorType.ZoomRectangle: type = Cursors.SizeNWSE; break; } Mouse.OverrideCursor = type; }
/// <summary> /// Sets the cursor type. /// </summary> /// <param name="cursorType">The cursor type.</param> public void SetCursorType(CursorType cursorType) { // switch (cursorType) // { // case CursorType.Pan: // this.Cursor = this.PanCursor; // break; // case CursorType.ZoomRectangle: // this.Cursor = this.ZoomRectangleCursor; // break; // case CursorType.ZoomHorizontal: // this.Cursor = this.ZoomHorizontalCursor; // break; // case CursorType.ZoomVertical: // this.Cursor = this.ZoomVerticalCursor; // break; // default: // this.Cursor = Cursors.Arrow; // break; // } }