Change the image height and width based on the scale?
- by user281947
I want to resize the image height and width after setting its scale, below is what i am doing :
<Image x:Name="img" Source="sii.PNG" >
<Image.RenderTransform>
<ScaleTransform x:Name="scale" />
</Image.RenderTransform>
</Image>
below is the cs code :
void Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
scale.ScaleX = scale.ScaleY =e.NewValue;
//here i have to change the height and width of an image
}