Click here to Skip to main content
15,393,377 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I’m trying to create an image viewer which would be able to zoom an image in and out with the use of both slider and button. I was able to accomplish this by using a slider which Tick is set as .25,.50 all the way up to 2 which would be a 25% to 200% image scale. But I would also like to implement a zoom in and out button (just like Microsoft Paint) that when clicked would make the slider arrow move to the next or previous tick (depending if zoom in or out) thus incrementing or decrementing the image scale by 25%. I’m new to WPF so I’m not familiar with all the properties I could use but I read that animating with the use of Storyboard might work. Would this be viable and how would this be done or are there other method I could use to accomplish my goals.
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900