Intersoft ClientUI Documentation
NavigationEventArgs Class
Members  Example  See Also  Send Feedback
Intersoft.Client.UI.Navigation Namespace : NavigationEventArgs Class






Provides data for non-cancelable navigation events, including LoadCompleted, Navigated, and NavigationStopped.

Object Model

NavigationEventArgs Class

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class NavigationEventArgs 
   Inherits Intersoft.Client.Framework.ISRoutedEventArgs
Visual Basic (Usage)Copy Code
Dim instance As NavigationEventArgs
C# 
public sealed class NavigationEventArgs : Intersoft.Client.Framework.ISRoutedEventArgs 
Delphi 
public class NavigationEventArgs = class(Intersoft.Client.Framework.ISRoutedEventArgs)sealed; 
JScript 
public sealed class NavigationEventArgs extends Intersoft.Client.Framework.ISRoutedEventArgs
Managed Extensions for C++ 
public __gc __sealed class NavigationEventArgs : public Intersoft.Client.Framework.ISRoutedEventArgs 
C++/CLI 
public ref class NavigationEventArgs sealed : public Intersoft.Client.Framework.ISRoutedEventArgs 

Example

The following example shows how to handle the Navigated event of the UXFrame, and use the NavigationEventArgs object to access the event data.
C#Copy Code
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);
    }
}

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.

Inheritance Hierarchy

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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.