Exemplo n.º 1
0
        public static void SetAnchor(this HorizontalLine line, DraggablePoint draggablePoint)
        {
            var b = new Binding()
            {
                Path = new PropertyPath("Position.Y"), Source = draggablePoint
            };

            line.SetBinding(HorizontalLine.ValueProperty, b);
            line.SetBinding(HorizontalLine.ToolTipProperty, b);
        }