Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.48 KB

how-to-get-the-return-value-of-a-page-function.md

File metadata and controls

30 lines (23 loc) · 1.48 KB
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
csharp
vb
functions [WPF], getting return values of
page functions [WPF], getting return values of
return values of page functions [WPF]
getting [WPF], return values of page functions
75470af6-256c-4c46-87e7-705080723a1c

How to: Get the Return Value of a Page Function

This example shows how to get the result that is returned by a page function.

Example

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]

See also

  • xref:System.Windows.Navigation.PageFunction%601