public override void OnLocationChanging(DUILocationChangingEventArgs e) { base.OnLocationChanging(e); if (MouseButtons == MouseButtons.Left) { this.bingingDisplayCube?.SetLocation(this.ClientBounds.Location); } }
void sliderBody_LocationChanging(object sender, DUILocationChangingEventArgs e) { OnScroll(); int value = ConvertTools.ChineseRounding(this.LeftToRight ? (this.sliderBody.X / this.sliderBody.ChangeStepX) : (this.sliderBody.Y / this.sliderBody.ChangeStepY)); if (this.value != value) { this.value = value + this.Minimum; OnValueChanging(); } }
void control_LocationChanging(object sender, DUILocationChangingEventArgs e) { this.ThisCenter = this.editableControl.PointToParent(new PointF(this.editableControl.centerX, this.editableControl.centerY)); }