Home > Sivlerlight 3 > Resizing Childwindow

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

Categories: Sivlerlight 3
  1. Spiderman110
    August 11, 2009 at 1:55 am | #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?

    Thanks

  1. No trackbacks yet.