Page.OnFragmentNavigation Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Called when navigating to a fragment on a page.
Namespace: System.Windows.Controls
Assembly: System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)
Syntax
'Declaration
Protected Overridable Sub OnFragmentNavigation ( _
e As FragmentNavigationEventArgs _
)
protected virtual void OnFragmentNavigation(
FragmentNavigationEventArgs e
)
Parameters
- e
Type: System.Windows.Navigation.FragmentNavigationEventArgs
An object that contains the event data.
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also