Silverlight 3: How to create a mutable child window?

Is there a way to create resizable child window in silverlight 3? Any pointers are highly appreciated.

+4
source share
2 answers

I don’t have the actual code for you, but you probably want to subclass ChildWindow and handle MouseLeftButtonDown, MouseMove, and MouseLeftButtonUp mouse events within a specific border with a ChildWindow edge or within a specific one (for example, the lower right corner).

You would like to use the standard drag and drop logic to find that drag and drop is being performed to resize and update this.Width and this.Height based on relative mouse coordinates using the GetPosition() method of the MouseEventArgs class.

You can also watch the FloatableWindow control on CodePlex, which is a refactored version of ChildWindow that supports drag and drop, move and resize.

+6
source

Take a look at Tim Huer FloatableWindow. I think this can do what you are looking for.

http://timheuer.com/blog/archive/2009/07/08/silverlight-floatablewindow-updated-with-resizing-capabilities.aspx

+2
source

Source: https://habr.com/ru/post/1301740/


All Articles