FragmentNavigationEventArgs.Fragment Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the uniform resource identifier (URI) fragment.

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

Syntax

'Declaration
Public ReadOnly Property Fragment As String
public string Fragment { get; }

Property Value

Type: System.String
The URI fragment.

Remarks

The Fragment property contains the value of the URI fragment in a navigation request. 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. Fragment values are typically used to request that the page be displayed in a particular state.

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.