LiveCharts.Wpf.Axis.BindALine C# (CSharp) Method

BindALine() private method

private BindALine ( ) : Line
return Line
        internal Line BindALine()
        {
            var l = new Line();

            var s = Separator as Separator;
            if (s == null) return l;

            l.SetBinding(Shape.StrokeProperty,
                new Binding {Path = new PropertyPath(Wpf.Separator.StrokeProperty), Source = s});
            l.SetBinding(Shape.StrokeDashArrayProperty,
                new Binding {Path = new PropertyPath(Wpf.Separator.StrokeDashArrayProperty), Source = s});
            l.SetBinding(Shape.StrokeThicknessProperty,
                new Binding {Path = new PropertyPath(Wpf.Separator.StrokeThicknessProperty), Source = s});
            l.SetBinding(VisibilityProperty,
                new Binding {Path = new PropertyPath(VisibilityProperty), Source = s});

            return l;
        }