private void LineageEditorPanel_NavigateRequest(object sender, LineageIdEventArgs e) { HandleNavigationRequest(e); }
private void linCtrl_NavigateRequest(object sender, LineageIdEventArgs e) { HandleNavigationRequest(e); //NavigateRequest(this, new LineageIdEventArgs(e.LineageId)); //BeginDraw(e.LineageId, true); }
private void LinCtrl_Selected(object sender, LineageIdEventArgs e) { SelectedLineageId = e.LineageId; }
private void HandleNavigationRequest(LineageIdEventArgs e) { if (!e.LineageId.HasValue) throw new InvalidOperationException("Lineage navigation requests must specify an id. "); if (e.LineageId.Value == CurrentRootLineageId) return; if (AnimationEnabled & CanvasScaleTransform.ScaleX == 1d & CanvasScaleTransform.ScaleY == 1d) AnimateMove(e.LineageId.Value); else //Root change animation is not supported while the canvas is zoomed by user (ScaleX/Y != 1) so navigate without animation in this case if (NavigateRequest != null) NavigateRequest(this, new LineageIdEventArgs(e.LineageId.Value)); }