Example #1
0
 private void LineageEditorPanel_NavigateRequest(object sender, LineageIdEventArgs e)
 {
     HandleNavigationRequest(e);
 }
Example #2
0
 private void linCtrl_NavigateRequest(object sender, LineageIdEventArgs e)
 {
     HandleNavigationRequest(e);
     //NavigateRequest(this, new LineageIdEventArgs(e.LineageId));
     //BeginDraw(e.LineageId, true);
 }
Example #3
0
 private void LinCtrl_Selected(object sender, LineageIdEventArgs e)
 {
     SelectedLineageId = e.LineageId;
 }
Example #4
0
 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));
 }