Intersoft ClientUI Documentation
NavigationEventArgs Class
Members  Example 



Provides data for non-cancelable navigation events, including LoadCompleted, Navigated, and NavigationStopped.
Object Model
NavigationEventArgs ClassRoutedEvent Class
Syntax
Public NotInheritable Class NavigationEventArgs 
   Inherits Intersoft.Client.Framework.ISRoutedEventArgs
Dim instance As NavigationEventArgs
public sealed class NavigationEventArgs : Intersoft.Client.Framework.ISRoutedEventArgs 
public ref class NavigationEventArgs sealed : public Intersoft.Client.Framework.ISRoutedEventArgs 
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
The following example shows how to handle the Navigated event of the UXFrame, and use the NavigationEventArgs object to access the event data.
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);
    }
}
Inheritance Hierarchy

System.Object
   System.EventArgs
      System.Windows.RoutedEventArgs
         Intersoft.Client.Framework.ISRoutedEventArgs
            Intersoft.Client.UI.Navigation.NavigationEventArgs

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NavigationEventArgs Members
Intersoft.Client.UI.Navigation Namespace
Navigation Overview

Send Feedback