Remarks

The NavigationEventArgs class provides data for the OnNavigatedTo and OnNavigatedFrom methods, and handlers of the Navigated, NavigationCancelledIsLoadingChanged and NavigationStopped events. Through these methods and event handlers, you can examine the properties about the current navigation request.

Example

 

public partial class MainPage : UXPage
{
    public MainPage()
    {
        InitializeComponent();
        this.ContentFrame.Navigated += new NavigationEventHandler(ContentFrame_Navigated);           
    }

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {

    }

    private void ContentFrame_Navigated(object sender, NavigationEventArgs e)
    {
        string title = string.Empty;
        object content = e.Content;

        if (content == null)
            content = ContentFrame.Content;

        if (content is Page)
            title = ((Page)content).Title;

        if (CrossPlatform.IsHtmlPageEnabled())
            CrossPlatform.SetDocumentTitle("Intersoft ClientUI Application | " + title);
    }
}

Definition

public sealed class NavigationEventArgs : ISRoutedEventArgs

Summary

The following table summarizes the members exposed in this class.

Public Properties

BaseEventArgsGets the original NavigationEventArgs raised by native navigation system.
ContentGets the root node of the target page's content.
ExtraDataGets the optional data Object that was passed when navigation started.
UriGets the uniform resource identifier (URI) of the target page.

Public Properties

public NavigationEventArgs BaseEventArgs { get; }

Gets the original NavigationEventArgs raised by native navigation system.

public object Content { get; }

Gets the root node of the target page's content.

public object ExtraData { get; }

Gets the optional data Object that was passed when navigation started.

public Uri Uri { get; }

Gets the uniform resource identifier (URI) of the target page.