本帖最后由 freezesword 于 2010-08-18 22:41:58 编辑

解决方案 »

  1.   

    给你的PFind 页面添加一个属性 MainWindow parentWindow;        public MainWindow ParentWindow
            {
                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.方法名