本文介绍了WPF PagFunction演示无法在intellisense中找到Return事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写这段代码

private void button1_Click(object sender,RoutedEventArgs e)

{

Pagefunction apage = new Pagefunction() ;

apage.Return + = new ReturnEventHandler< object>(apage_Return);



NavigationService.Navigate(apage);

}



但是在apage之后。返回事件是不是在intellisence请告诉我是否缺少任何汇编参考?

I am writing this code
private void button1_Click(object sender, RoutedEventArgs e)
{
Pagefunction apage = new Pagefunction();
apage.Return += new ReturnEventHandler<object>(apage_Return);

NavigationService.Navigate(apage);
}

but after apage. Return event is not there in intellisence please tell whether i am missing any assembly refrence?

推荐答案

public Page1()
       {
           InitializeComponent();
           PageFunction<string> obj = new PageFunction<string>();
           obj.Return += obj_Return;
       }

       void obj_Return(object sender, ReturnEventArgs<string> e)
       {

       }


这篇关于WPF PagFunction演示无法在intellisense中找到Return事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 14:41