Introduction Here in this article we are discussing that how we can use slider to scale a Line. This example used a StackPanel and Canvas. Then you will set the height and width of the StackPanel's border and canvas. You will also need to use TransformGroup, Line and a Slider control and set the ScaleTransform, X-Y coordinates, stroke and Strokethickness of the Line and lastly you will bind the x-y scale of the Line to the Slider. Getting Started