Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Comments
ashok rathod 29-Sep-14 7:08am    
Have you tried clean your solution?

1 solution

Its need System.Windows.Navigation namespace in using section and it requires specific type of argument for initialization like below


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

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

       }
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900