PageFunction<T>::Return Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Occurs when a called PageFunction<T> returns, and can only be handled by the calling page.

Namespace:   System.Windows.Navigation
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
event ReturnEventHandler<T>^ Return {
	void add(ReturnEventHandler<T>^ value);
	void remove(ReturnEventHandler<T>^ value);
}

A calling page detects when a called PageFunction<T> returns by handling Return. Additionally, the calling page can retrieve the PageFunction<T> return value from the Result property of the ReturnEventArgs<T> which is passed to the event handler.

<object Return="ReturnEventHandler"/>

The following example shows how to handle the Return event.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: