如何在wpf中的mdi应用程序中设置用户控件全屏 [英] how to set user control fullscreen in mdi application in wpf

查看:276
本文介绍了如何在wpf中的mdi应用程序中设置用户控件全屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这个应用程序主窗口是MDI父窗口,用户控件是MDI子窗口如何设置这个子窗口全屏

in this application main window is MDI parent and user control is MDI child how to set this child full screen

推荐答案

WPF没有MDI这样的东西。微软努力逐步淘汰或阻止不幸的MDI。你不应该使用它,你根本不能在WPF上使用它。



你可以使用,例如, TabControl ,但标签页总是最大化。对于具有多个子窗口的更高级UI,您可以使用第三方开源产品AvalonDock提供的可停靠接口: http:// avalondock .codeplex.com / [ ^ ]。



-SA
There is no such thing as MDI for WPF. Microsoft tries hard to phase out or discourage the unfortunate MDI. You should not use it, and you simply cannot use it with WPF.

You can use, for example, TabControl, but tab pages are always "maximized". For more advanced UI with multiple "child windows", you can use dockable interface provided by the 3rd-party open-source product AvalonDock: http://avalondock.codeplex.com/[^].

—SA


尝试使用LinsUIWPF Suite,它同时支持MDI和TDI。您可以轻松单击最大化,最小化按钮以最大化或最小化任何子文档。

referenec: http:/ /goldcing.blogspot.com/2014/01/how-to-switch-between-mdi-and-tdi.html [ ^ ]
Try LinsUIWPF Suite, it supports both MDI and TDI. You can easily click the "Maximize", "Minimize" buttons to maximize or minimize any child document.
The referenec: http://goldcing.blogspot.com/2014/01/how-to-switch-between-mdi-and-tdi.html[^]


这篇关于如何在wpf中的mdi应用程序中设置用户控件全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆