public FrameworkElement CreateEdgeArrow(EdgeArrowViewModel arrowViewModel) { if (arrowViewModel.Arrow == null) { return new Line { X1 = 0, Y1 = 0, X2 = 0, Y2 = 10, Stroke = new SolidColorBrush(Colors.Black), StrokeThickness = 1 }; } return new ContentPresenter { Content = arrowViewModel.Arrow }; }
public FrameworkElement CreateEdgeArrow(EdgeArrowViewModel arrowViewModel) { if (arrowViewModel.Arrow == null) { return(new Line { X1 = 0, Y1 = 0, X2 = 0, Y2 = 10, Stroke = new SolidColorBrush(Colors.Black), StrokeThickness = 1 }); } return(new ContentPresenter { Content = arrowViewModel.Arrow }); }