在单独的窗口上显示的子窗口(wpf应用程序)

时间:2023-02-19 19:39:36

I'm trying to get a grasp on WPF and MVVM and have been making good progress .I was designed my applications User Interface Parent as a Window object from which I created a menu on the menu when user select menu item another window object is shown and so on . I read there is no MDI in WPF . But my problem is each window object is shown asa sepearate window.I want to dock the child windows on the parent window.(child parent relationship) Is there any good Application UI for my application .(I need an alternative concept for MDI in wpf)

我正在努力掌握WPF和MVVM并且取得了很好的进展。我设计了我的应用程序用户界面Parent作为Window对象,当用户选择菜单项时,我在菜单上创建了一个菜单,显示了另一个窗口对象等等 。我读过WPF中没有MDI。但我的问题是每个窗口对象都显示为一个单独的窗口。我想将子窗口停靠在父窗口上。(子父关系)我的应用程序是否有任何良好的应用程序UI。(我需要在wpf中使用MDI的替代概念) )

Thanks

谢谢

1 个解决方案

#1


1  

try using tabs control in wpf. This is usually used instead of MDI in wpf and is also recommended by microsoft. Check out the link here for an example of implementing MDI like functionality using tab.

尝试在wpf中使用制表符控件。这通常用于代替wpf中的MDI,也是微软推荐的。请查看此处的链接,以获取使用选项卡实现MDI功能的示例。

For more details about tab control you can check out the following

有关选项卡控件的更多详细信息,请查看以下内容

http://codingtales.blogspot.co.uk/2010/02/creating-complete-tabbed-interface-in.html http://tech.pro/tutorial/730/the-wpf-tab-control-inside-and-out

http://codingtales.blogspot.co.uk/2010/02/creating-complete-tabbed-interface-in.html http://tech.pro/tutorial/730/the-wpf-tab-control-inside-and退房手续

You can also check out Avalondock but I have never tried it out

你也可以看看Avalondock,但我从未尝试过

The link here might also help

这里的链接也可能有所帮助

Hope this helps.

希望这可以帮助。

#1


1  

try using tabs control in wpf. This is usually used instead of MDI in wpf and is also recommended by microsoft. Check out the link here for an example of implementing MDI like functionality using tab.

尝试在wpf中使用制表符控件。这通常用于代替wpf中的MDI,也是微软推荐的。请查看此处的链接,以获取使用选项卡实现MDI功能的示例。

For more details about tab control you can check out the following

有关选项卡控件的更多详细信息,请查看以下内容

http://codingtales.blogspot.co.uk/2010/02/creating-complete-tabbed-interface-in.html http://tech.pro/tutorial/730/the-wpf-tab-control-inside-and-out

http://codingtales.blogspot.co.uk/2010/02/creating-complete-tabbed-interface-in.html http://tech.pro/tutorial/730/the-wpf-tab-control-inside-and退房手续

You can also check out Avalondock but I have never tried it out

你也可以看看Avalondock,但我从未尝试过

The link here might also help

这里的链接也可能有所帮助

Hope this helps.

希望这可以帮助。