Microsoft Silverlight will reach end of support after October 2021. Learn more.
Called when navigating to a fragment on a page.
Assembly: System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)
'Declaration Protected Overridable Sub OnFragmentNavigation ( _ e As FragmentNavigationEventArgs _ )
protected virtual void OnFragmentNavigation( FragmentNavigationEventArgs e )
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.
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.