title | description | ms.date | dev_langs | helpviewer_keywords | ms.assetid | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
How to: Get the Return Value of a Page Function |
Learn how to get the return value of a page function, by means of the included examples in XAML, C#, and Visual Basic. |
03/30/2017 |
|
|
75470af6-256c-4c46-87e7-705080723a1c |
This example shows how to get the result that is returned by a page function.
To get the result that is returned from a page function, you need to handle xref:System.Windows.Navigation.PageFunction%601.Return of the page function you are calling.
[!code-xamlHOWTOPageFunctionSnippets#CallAPageFunctionXAML]
[!code-csharpHOWTOPageFunctionSnippets#GetPageFunctionResultCODEBEHIND] [!code-vbHOWTOPageFunctionSnippets#GetPageFunctionResultCODEBEHIND]
- xref:System.Windows.Navigation.PageFunction%601