Share via


NavigationItem Class

Definition

Keeps track of the feature pages that the client is using. This class cannot be inherited.

public ref class NavigationItem sealed : IDisposable
public sealed class NavigationItem : IDisposable
type NavigationItem = class
    interface IDisposable
Public NotInheritable Class NavigationItem
Implements IDisposable
Inheritance
NavigationItem
Implements

Examples

The following example uses a NavigationItem object and the associated event arguments to assist navigation.

private void OnNavigationServiceNavigationPerformed(
    object sender, NavigationEventArgs e) {
    NavigationItem item = e.NewItem;
    if (e.IsNew && (item != null) && 
        (item.PageType != null)) {
        // Ignore Home page navigations
        if (String.Equals(item.PageType.Name, "Homepage",
            StringComparison.OrdinalIgnoreCase)) {
            return;
        }

        MRUList<MRUPageInfo> features =
            _features[(int)item.ConfigurationPath.PathType];
        features.Add(new MRUPageInfo(
            item.PageType.AssemblyQualifiedName)
            );
    }
}

Remarks

You can use this class whenever you perform a navigation operation. The NavigationItem object can represent a page that you are navigating to or from, and you can use the object in the set of history pages.

Constructors

NavigationItem(Connection, ManagementConfigurationPath, Type, Object)

Properties

ConfigurationPath

Gets the configuration path for the navigation item.

Connection

Gets the connection for the navigation item.

IsPageCreated
NavigationData

Gets the arbitrary data that is used in the navigation item.

Page

Gets the page that is associated with the navigation item.

PageType

Gets the type of page that is associated with the navigation item.

UserData

Gets the user data that is associated with the navigation item.

Explicit Interface Implementations

IDisposable.Dispose()

Releases all resources used by the NavigationItem.

Applies to

See also