Resize WPF/e figures
Hello.
When I resize my window, my picture what is made in WPF/e doesn't scale with the size of my window.
Does someone hase an easy solution for me?
An little hind or something or a link to an site where it is explained?
I hope someone can help me.
greetings gerard
Here is a quick example for you: http://blogs.sqlxml.org/wpfe/scale/
You need to handle the window.onresize event in your script and then scale the entire canvas using a ScaleTransform. In the above example it doesn't account for keeping the right aspect ratio, but that wouldn't be very hard to add.
Can I view the source code From this example?
This is excactly what I need.
Or does someone else have an example for me with this function?
Especially the code for the picture, how to scale, but all the code is also more than welcom.
ps: Thanx Bryant Likes for the quick reaction at my first question.
Thanx. I've could know if I looked better to the source code off http://blogs.sqlxml.org/wpfe. (little bit stupid of me)
Sometimes it isn't a cool thing that you always can get source code if your'e an developer :). But for me it is better, because there aren't a lot example's to view. (new thing for me wpf/e)
Thanx a lot again, bey