/// <summary> /// The component is currently be moved or resized. /// For each drag a new layout is calculated and applied if the previous one is completed. /// </summary> private void OnDragged(object sender, InputModeEventArgs e) { if (sender is ComponentDropInputMode graphDropInputMode) { layoutHelper.Location = graphDropInputMode.MousePosition.ToPointD(); layoutHelper.RunLayout(); } }
/// <summary> /// The component is currently be moved or resized. /// For each drag a new layout is calculated and applied if the previous one is completed. /// </summary> private void OnDragged(object sender, InputModeEventArgs e) { var graphDropInputMode = sender as ComponentDropInputMode; if (graphDropInputMode != null) { layoutHelper.Location = graphDropInputMode.MousePosition.ToPointD(); layoutHelper.RunLayout(); } }