Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

NavigationService.CurrentSource Property

Definition

Namespace:
System.Windows.Navigation
Assembly:
PresentationFramework.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the URI of the content that was last navigated to.

public:
 property Uri ^ CurrentSource { Uri ^ get(); };
public Uri CurrentSource { get; }
member this.CurrentSource : Uri
Public ReadOnly Property CurrentSource As Uri

Property Value

Uri

A Uri for the content that was last navigated to, if navigated to by using a URI; otherwise, null.

Remarks

The value of the CurrentSource property is not changed until navigation to a different URI has completed successfully.

CurrentSource can be set with a fragment-only URI.

Applies to


Feedback

Was this page helpful?