i just binded the slider with an image so that when i am sliding the slider,then the image will enlarge or shrink (Sorry for not using the proper terms but i am sure that one using the wpf can understand what i am trying to say)
here is what i did:
unfortunately when i am sliding the slider,then the image is not enlarging or shrinkingCode:<Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <StackPanel> <Slider x:Name="imageslider" Minimum="100" Maximum="500" Width="200"></Slider> <Image Source="Untitled.jpg" Width="{Binding ElementName=imageslider,Path=value}" Height="{Binding ElementName=imageslider,Path=value}" HorizontalAlignment="Center" Stretch="None" DataContext="{Binding}"></Image> </StackPanel> </Window>
any help please?
![]()





Reply With Quote