Пример #1
0
 /// <summary>
 /// Hides this control with all related edges
 /// </summary>
 public void HideWithEdges()
 {
     this.SetCurrentValue(VisibilityProperty, Visibility.Collapsed);
     SetConnectionPointsVisibility(false);
     RootArea.GetRelatedControls(this, GraphControlType.Edge, EdgesType.All).ForEach(a =>
     {
         //if (a is EdgeControlBase)
         //     ((EdgeControlBase)a).SetVisibility(Visibility.Collapsed);
         // else
         a.Visibility = Visibility.Collapsed;
     });
 }
Пример #2
0
 /// <summary>
 /// Shows this control with all related edges
 /// </summary>
 public void ShowWithEdges()
 {
     this.SetCurrentValue(VisibilityProperty, Visibility.Visible);
     SetConnectionPointsVisibility(true);
     RootArea.GetRelatedControls(this, GraphControlType.Edge, EdgesType.All).ForEach(a =>
     {
         if (a is EdgeControlBase)
         {
             ((EdgeControlBase)a).SetVisibility(Visibility.Visible);
         }
         else
         {
             a.Visibility = Visibility.Visible;
         }
     });
 }