Resizing Childwindow

Resizing of the childwindows is not supported in silverlight 3 beta which might be possible in the RTM version, but until then here is one way we can style it and get the resizing to work

I took the style of the ChildWindow and added  a Canvas in the style and added 4 thumbs one on each side of the window. Their size is .5px. so  they dont change the look of the childwindow. when you mouse over near the borders you can see the visual cue from the cursors,  The dragDelta event is handled to resize the window.

we can follow the same logic to get the resize behavior to work with Floatable window

you can see a sample here and download the code here


5 thoughts on “Resizing Childwindow

  1. Hi,Lee
    I am putting a checkBox in ChildWindow,
    But when is ChildWindow is Showed,
    System.Windows.Markup.XamlParseException is threw.

    CheckBox don:t support text content?
    Do you have any suggestions about this?


  2. Hi Lee, Your post’s very usefull for me. I see that your solution perfect if my resource is put in App.xaml. But it isn’t work if I put my resource in “Resource dictionary” file because I can’t put my C# code in that.

    Anyway, this’s a good solution. Hope you strong health and lucky !

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s