首页 新闻 搜索 专区 学院

关于WPF动态加载控件问题

0
[已关闭问题]
我想实现点某个按钮,加载一个窗体,然后再这个新窗体中加载一个TextBox或其他显示控件,然后为TextBox赋值,我实现了加载新窗体当不知道如何加载新控件 <BR>&nbsp; Window mywindow = new Window(); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mywindow.Owner = this; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mywindow.Width = 300; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mywindow.Height = 300; <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mywindow.Title = str; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mywindow.Show
思然的主页 思然 | 初学一级 | 园豆:0
提问于:2008-07-23 12:07
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册