diff --git a/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeCodeBehind/MainWindow.xaml b/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeCodeBehind/MainWindow.xaml index 9b66725..17c500c 100644 --- a/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeCodeBehind/MainWindow.xaml +++ b/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeCodeBehind/MainWindow.xaml @@ -104,32 +104,24 @@ - - - - - - + + - - - - - + - - + - - + diff --git a/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeCodeBehind/MainWindow.xaml.cs b/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeCodeBehind/MainWindow.xaml.cs index 99f771f..28b15c0 100644 --- a/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeCodeBehind/MainWindow.xaml.cs +++ b/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeCodeBehind/MainWindow.xaml.cs @@ -49,7 +49,6 @@ public MainWindow() { Layout = new ForceDirectedTree() { - ConnectorLength = 110, AttractionStrength = 0.6, RepulsionStrength = 25000, MaximumIteration = 2500, @@ -195,13 +194,6 @@ private ConnectorViewModel Edge(string sourceId, string targetId) // e.g. TargetDecorator = new DecoratorViewModel { Shape = DecoratorShapes.Arrow } }; } - - private void UpDown_ValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) - { - if(Diagram.LayoutManager != null) - (Diagram.LayoutManager.Layout as ForceDirectedTree).ConnectorLength = (double)e.NewValue; - } - private void UpDown_ValueChanged_1(DependencyObject d, DependencyPropertyChangedEventArgs e) { if (Diagram.LayoutManager != null) diff --git a/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeDataSource/MainWindow.xaml b/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeDataSource/MainWindow.xaml index 6296e29..857f4ec 100644 --- a/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeDataSource/MainWindow.xaml +++ b/Samples/Automatic Layout/Force Directed Tree layout/ForceDirectedTreeDataSource/MainWindow.xaml @@ -43,7 +43,7 @@ - +