在WPF中的窗口中打开用户控件 [英] Opening a user control in a window in WPF

查看:413
本文介绍了在WPF中的窗口中打开用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在WPF项目中有一个主窗口和20个usercontroll作为子窗口..

我已经在主窗口中放置了一个ContentFrame来打开UserControl.现在,我的问题是如何在单个窗口中打开多个usercontrol并将其移动或拖动到主Window

Hi,

I have a main window and 20 usercontroll as sub window in a WPF project..

I have placed a ContentFrame in the mainwindow to open a UserControl.. Now my question is how can i open multiple usercontrol in a single window and move them or drag them in a main Window

推荐答案

作为SA,我不确定您要问的是什么,但是由于您没有提供更多详细信息,我只是猜测这篇文章可能会对您有所帮助
WPF的多个窗口界面 [
As SA I''m not entirely sure what it is you''re asking, but since you haven''t provided more details I''m just gonna guess that this article might help
Multiple Window Interface for WPF[^]


您可以使用一些网格并将用户控件添加到网格并移动或拖动此网格,s
you can use some grid and add usercontrol,s to grid,s and move or drag this grid,s


这篇关于在WPF中的窗口中打开用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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