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

[318 byte] By [gerard1234] at [2008-3-7]
# 1

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.

BryantLikes at 2007-10-9 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) General Discussion...
# 2

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.

gerard1234 at 2007-10-9 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) General Discussion...
# 3

The source is all there for you to read.

That is one of the cool things about WPF/E, you can always get the source. :)

BryantLikes at 2007-10-9 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) General Discussion...
# 4

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

gerard1234 at 2007-10-9 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) General Discussion...