简体   繁体   English

如何设置子窗口只能在WPF的父窗口内移动?

[英]How to seta child window moveable only inside the parent window in WPF?

 private void Button_2_Click(object sender, RoutedEventArgs e)
 {
     Views.Window1 win1 = new Views.Window1();
     win1.Show();
 }

There is no built-in Multiple Document Interface (MDI) support available in WPF. WPF中没有内置的多文档界面(MDI)支持。 There are some third-party solutions that you can try out though: 您可以尝试以下一些第三方解决方案:

How to implement mdi in a WPF application 如何在WPF应用程序中实现MDI

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM