Uploaded to WindowsClient.net by jaytayl on 08-04-2007

This sample demonstrates how a Page can determine the referring Page, which is the source Page which navigated to this Page. The referring page is available from static Referrer property, of type Page, which is implemented by the Application subclass. The value of Referrer is determined when navigation to any page in an application occurs, specifically by handling Navigating and Navigated.

This technique works for standalone applications, where pages are hosted by a NavigationWindow or a Frame, or packaged with a XAML browser application (XBAP).

This sample demonstrates a specific feature of the Windows Presentation Foundation and, consequently, does not follow application development best practices. For comprehensive coverage of Windows Presentation Foundation (WPF) and Microsoft .NET Framework application development best practices, refer to the following as appropriate:

Accessibility - Accessibility Best Practices

Localization - WPF Globalization and Localization Overview

Performance - Optimizing WPF Application Performance

Security - Windows Presentation Foundation Security

Building the Sample

Running the Sample

See Also

Reference

Page
Application
Navigating
Navigated