
Visual Basic (Declaration) | |
---|---|
Public NotInheritable Class NavigationEventArgs Inherits Intersoft.Client.Framework.ISRoutedEventArgs |
Visual Basic (Usage) | ![]() |
---|---|
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 |
The following example shows how to handle the Navigated event of the UXFrame, and use the NavigationEventArgs object to access the event data.
C# | ![]() |
---|---|
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); } } |
The NavigationEventArgs class provides data for the OnNavigatedTo and OnNavigatedFrom methods, and handlers of the Navigated, NavigationCancelled, IsLoadingChanged and NavigationStopped events. Through these methods and event handlers, you can examine the properties about the current navigation request.
Intersoft.Client.Framework.ISRoutedEventArgs
Intersoft.Client.UI.Navigation.NavigationEventArgs
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