title: How to use the slider in WPF to Zoom in and out of an image?
body: <p>I am trying to use slider to control the Zoom in and Zoom out of any image.</p>
  
  <p>I have written a code:</p>
  
  <pre><code>  private void image1_MouseMove(object sender, MouseEventArgs e)
          {
             if (!image1.IsMouseCaptured) return;
              var tt = (TranslateTransform)((TransformGroup)
        image1.RenderTransform).Children.First(tr =&gt; tr is TranslateTransform);
              Vector v = start - e.GetPosition(border1);
              tt.X = origin.X - v.X;
              tt.Y = origin.Y - v.Y;
          }
  </code></pre>
  
  <p>Here it is working fine. using mouse scroll. But I want to use the slider for the same functioning. </p>
  
  <p>But unable to put the same behaviour like mouse scroll using slider. 
  I am very new to WPF and its control, so any help with details is highly appreciated. </p>
  
  <p>How can i implement the same finctionality of Zoom in - out using the slider?</p>