void ITransformProvider.Move(double x, double y) { GridSplitter owner = (GridSplitter)Owner; if (!IsEnabled()) { throw new ElementNotEnabledException(); } if (double.IsInfinity(x) || double.IsNaN(x)) { // return; } if (double.IsInfinity(y) || double.IsNaN(y)) { // return; } owner.InitializeAndMoveSplitter(x, y); }
/// <summary> /// Moves the control. /// </summary> /// <param name="x"> /// Absolute screen coordinates of the left side of the control. /// </param> /// <param name="y"> /// Absolute screen coordinates of the top of the control. /// </param> void ITransformProvider.Move(double x, double y) { GridSplitter owner = (GridSplitter)Owner; if (!IsEnabled()) { throw new ElementNotEnabledException(); } if (double.IsInfinity(x) || double.IsNaN(x)) { // REMOVE_RTM: update when Jolt 23302 is fixed // throw new ArgumentOutOfRangeException("x"); return; } if (double.IsInfinity(y) || double.IsNaN(y)) { // REMOVE_RTM: update when Jolt 23302 is fixed // throw new ArgumentOutOfRangeException("y"); return; } owner.InitializeAndMoveSplitter(x, y); }