WPF中page调用所在window的事件 本帖最后由 freezesword 于 2010-08-18 22:41:58 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 给你的PFind 页面添加一个属性 MainWindow parentWindow; public MainWindow ParentWindow { get { return parentWindow; } set { parentWindow = value; } }然后在button1的click事件代码修改为 PFind p = new PFind();//bt_Findp.ParentWindow=this; this.Frame1.Content = p;把button2的事件执行代码放到一个public 方法里面PFind页面里面点击button时候直接调用ParentWindow.方法名 【急求】为何用JMAIL写的收邮件程序不能连接邮箱。。。 求助datagridview 关于多线程控制 域验证问题 怎样将本地文件上传至Internet上 如何将N个图片文件,生成一个PDF文件呢? NeatUpload 大文件上传,如何截取视频的第一帧图像 急:如何把DataSet中的数据添置到C#自身带的水晶报表制作的报表中去。。。在线等 xml文件读问题 还是关于静态方法多线程的问题, C# VS插件开发 高手请进。。 求助如何在前台验证用户名是否存在
{
get { return parentWindow; }
set { parentWindow = value; }
}
然后在button1的click事件代码修改为
PFind p = new PFind();//bt_Find
p.ParentWindow=this;
this.Frame1.Content = p;
把button2的事件执行代码放到一个public 方法里面
PFind页面里面点击button时候直接调用ParentWindow.方法名