Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Page.OnFragmentNavigation Method

Silverlight

Called when navigating to a fragment on a page.

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

protected virtual void OnFragmentNavigation(
	FragmentNavigationEventArgs e
)

Parameters

e
Type: System.Windows.Navigation.FragmentNavigationEventArgs
An object that contains the event data.

The OnFragmentNavigation method is called when navigating to a uniform resource identifier (URI) that includes a fragment. A fragment is the value after the fragment delimiter (#). For example, when navigating within a frame, the URI /Views/AboutPage.xaml#contact specifies to navigate to the Silverlight page located at /Views/AboutPage.xaml and pass a fragment value of contact. You override the OnFragmentNavigation method to perform any actions when responding to a navigation request that includes a fragment.

Generally, use the OnFragmentNavigation method instead of creating an event handler for the FragmentNavigation event.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2017 Microsoft