PageFunction(Of T).OnReturn Method (ReturnEventArgs(Of T))

 

A PageFunction(Of T) calls OnReturn to return to the caller, passing a return value via a ReturnEventArgs(Of T) object

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

Protected Overridable Sub OnReturn (
	e As ReturnEventArgs(Of T)
)

Parameters

e
Type: System.Windows.Navigation.ReturnEventArgs(Of T)

A ReturnEventArgs(Of T) object that contains the PageFunction(Of T) return value (Result).

OnReturn is called by a PageFunction(Of T) to initiate a navigation to the calling page.

This causes the Return event to be raised, in order for the calling page to:

The following example shows how to call OnReturn.

Private Sub doneButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    ' Complete the page function and return data of type T
    OnReturn(New ReturnEventArgs(Of String)(Me.pageFunctionData.Text))
End Sub

.NET Framework
Available since 3.0
Return to top
Show: