An example of a reusable draggable resizable window control created in Silverlight 2.0
Last post 05-12-2008 9:11 AM by adefwebserver. 5 replies.
Sort Posts:
05-10-2008 1:33 PM
An example of a reusable draggable resizable window control created in Silverlight 2.0

It's not perfect but I provide full source code so you can easily fix any issue you find with it. Get it here:

http://www.adefwebserver.com/DotNetNukeHELP/Misc/Silverlight/SilverlightResizableWindow/

http://ADefwebserver.com

adefwebserver

Joined on 06-07-2003
Los Angeles, CA
Posts 49
05-12-2008 4:57 AM
Re: An example of a reusable draggable resizable window control created in Silverlight 2.0

Hey.

I downloaded that yesterday, looks pretty cool.

Just one thing thought, setting the Height and Width propertys seems to have no effect.

SilverlightWindowControl janela = new SilverlightWindowControl();

janela.Height = 100;

janela.Width = 100;

LayoutRoot.Children.Add(janela);

It seems it always stays with the default size.

Is that on purpose or? :)

nmpgaspar

Joined on 03-03-2008
Posts 70
05-12-2008 5:21 AM
Re: An example of a reusable draggable resizable window control created in Silverlight 2.0

Cool, nice sample!

Jim (http://jimmangaly.blogspot.com/)

http://www.identitymine.com/

Jim Mangaly

Joined on 04-21-2008
Kochi, India
Posts 108
05-12-2008 8:02 AM
Re: An example of a reusable draggable resizable window control created in Silverlight 2.0

nmpgaspar:

Just one thing thought, setting the Height and Width propertys seems to have no effect.

It seems it always stays with the default size.

Yes the Window control needs to expose properties to allow you to set it's size when it first loads. This is planned. The first thing it needs to do is allow you to resize it from the corners. I plan to continue to work on it here: SilverlightDesktop.net

http://ADefwebserver.com

adefwebserver

Joined on 06-07-2003
Los Angeles, CA
Posts 49
05-12-2008 8:21 AM
Re: An example of a reusable draggable resizable window control created in Silverlight 2.0

:)

If i may, i would say that, having the WindowControl allowing to insert any component on it, and not just an Image would be more important than the corner resize :)

There is a nice one here: http://silverlight.net/forums/t/12467.aspx

But yours is better at resizing, since unlike the one on that thread, it doesn't "move" when resizing.

 

 

nmpgaspar

Joined on 03-03-2008
Posts 70
05-12-2008 9:11 AM
Marked as Answer
Re: An example of a reusable draggable resizable window control created in Silverlight 2.0

nmpgaspar:

If i may, i would say that, having the WindowControl allowing to insert any component on it, and not just an Image would be more important than the corner resize :)

There is a nice one here: http://silverlight.net/forums/t/12467.aspx

But yours is better at resizing, since unlike the one on that thread, it doesn't "move" when resizing.

You can insert any image into the window at: http://silverlightdesktop.net However it looks like the link you provided does have a better overall window and he fixed his problems with the window moving while resizing. I will be adjusting my code in the future.

http://ADefwebserver.com

adefwebserver

Joined on 06-07-2003
Los Angeles, CA
Posts 49