private void updateHotspot(dfMouseEventArgs mouseEvent) { if (this.indicator == null) { return; } var relativePos = control.GetHitPosition(mouseEvent); indicator.RelativePosition = relativePos - indicator.Size * 0.5f; updateSelectedColor(); }