none
Floating and Resizable Windows

    Question

  • I am looking to create a floating/resizable window to use in a Silverlight 2 solution I am working on.  I do not want to reinvent something that already exists.  Has someone already built this, or know of a control to do this? 

    Thanks!

    Monday, October 13, 2008 2:40 AM

All replies

  • I use a singleton for that which holds a Height and Width which is set by the SizeChanged events of the particulair control that is being resized. That way i can get the Height and Width of it anywhere in my app. The SizeChanged comes with a e.NewSize.Height & Width property.

    Monday, October 13, 2008 3:10 AM
  • You can also use several GridSplitter controls together.

     

    Monday, October 13, 2008 4:13 AM
  • Do either of you have some examples of how you have implemented the solutions with these approaches?
    Monday, October 13, 2008 4:27 AM
  • You can find several examples, either on Silverlight Gallery or over the internet. Check projects that demonstrate all the controls available, or search for "gridsplitter" in google.

    I can only remember of this one at the moment

     http://silverlight.net/samples/2b2/SilverlightControls/run/default.html

     

     

    Monday, October 13, 2008 4:38 AM
  • I've seen two or three examples of a Silverlight Application that looks like running windows desktop right in the browser, with full window control etc. I do not know if they were open source, but I've seen them. They are pretty slick.

    Monday, October 13, 2008 12:57 PM
  •  Email me if you still need this.

    I have developed a window for one of my applications that is dragable and resizable.

    happy to share!

    andrew

     

    Monday, October 13, 2008 2:41 PM
  • Would greatly appreciate it if you would.  Can you email to robertlair at gmail dotcom?  Thanks!

    Monday, October 13, 2008 3:12 PM
  • Anyone else have a floating window solution?

    Tuesday, October 14, 2008 3:12 AM
  • Hi,

    For Floating windows you have to Handle MouseMove,MouseLeftButtonDown and MouseLeftButtonUp event.

    While moving mouse Get absolute position of your mouse cursor and Set Left and Top Properties of your User Control.I think you can check this link for reference.

    http://www.dotnetcurry.com/ShowArticle.aspx?ID=198

    Tuesday, October 14, 2008 4:11 AM
  •  I just emailed you with my window...

    Hope it helps. The events are not perfect (resizing) but they are not off by much. Needs a little tweaking. It is not commented, so let me know if you have any questions... it is pretty straight forward, though.

    Tuesday, October 14, 2008 12:31 PM
  • You can use my sample and tutorial to get started.

    http://www.silverlightexamples.net/post/Creating-Cool-Draggable-Window-in-Silverlight.aspx

    I've submitted to the gallery. Hopefull it will get approved just like its previous versions.

    Tuesday, October 14, 2008 10:26 PM