WPF在当前窗口中加载其他窗口 [英] WPF Load other window in current window

查看:609
本文介绍了WPF在当前窗口中加载其他窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如何在WPF的当前窗口中加载另一个窗口?在Windows Form Application中,想法是在PANEL上显示



Hi all,

How to load another window in current window in WPF? At Windows Form Application, the idea is showing it at PANEL

Me.pnlView.Controls.Clear()
Dim frm1 As New frmNewMeeting
frm1.FormBorderStyle = FormBorderStyle.None
frm1.Dock = DockStyle.Fill
frm1.WindowState = FormWindowState.Maximized
frm1.TopLevel = False
Me.pnlView.Controls.Add(frm1)
frm1.Show()
Me.Text = "Schedule System :: Book New Meeting Session"
Exit Sub





与WPF相同的Winform是什么?我现在正在研究WPF



What is the equivalent of Winform with WPF? I'm working on WPF right now

推荐答案

同意谢尔盖..



我认为你应该使用 Frame [ ^ ]为此目的。您可以加载以构建不同的内容。
Agree with Sergey..

I think that you should use Frame[^] for this purpose. You can load to frame different contents.


这篇关于WPF在当前窗口中加载其他窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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