How Do You Create A Panel in WPF that Can Be Dragged Outside the Main Window?

前端 未结 1 664
抹茶落季
抹茶落季 2021-01-15 23:35

Trying to replicate the docking controls in Visual Studio 2008. My application replays the RADAR environment for the FAA and I want the ability for dual monitor users to dr

1条回答
  •  别那么骄傲
    2021-01-15 23:52

    Child controls can't exist as top-level windows on their own. They need a window to carry them around.

    The general technique for this sort of thing is that you have to create an instance of a new top-level window (WPF Window) when the drag action begins, remove (or clone) the target control from its original window and insert it into the new floating window.

    0 讨论(0)
提交回复
热议问题