Table of Contents

Class NavigationTreeNodeViewModelExtensions

Namespace
Dynamicweb.Frontend.Navigation
Assembly
Dynamicweb.dll

Extension methods for NavigationTreeNodeViewModel.

public static class NavigationTreeNodeViewModelExtensions
Inheritance
NavigationTreeNodeViewModelExtensions
Inherited Members

Methods

GetPageItem(NavigationTreeNodeViewModel)

Gets the page item associated with the navigation tree node.

public static ItemViewModel? GetPageItem(this NavigationTreeNodeViewModel node)

Parameters

node NavigationTreeNodeViewModel

The navigation tree node.

Returns

ItemViewModel

The page item associated with the node, or null if the node is null, the page is not found, or the page item is null.

GetPagePropertyItem(NavigationTreeNodeViewModel)

Gets the page property item associated with the navigation tree node.

public static ItemViewModel? GetPagePropertyItem(this NavigationTreeNodeViewModel node)

Parameters

node NavigationTreeNodeViewModel

The navigation tree node.

Returns

ItemViewModel

The page property item associated with the node, or null if the node is null, the page is not found, or the page property item is null.

IsEcommerceGroup(NavigationTreeNodeViewModel)

Determines whether the navigation tree node represents an ecommerce group.

public static bool IsEcommerceGroup(this NavigationTreeNodeViewModel node)

Parameters

node NavigationTreeNodeViewModel

The navigation tree node.

Returns

bool

true if the node represents an ecommerce group; otherwise, false.

TryGetIconFile(NavigationTreeNodeViewModel, out ImageFileViewModel?)

Tries to get the icon file associated with the navigation tree node.

public static bool TryGetIconFile(this NavigationTreeNodeViewModel node, out ImageFileViewModel? iconFile)

Parameters

node NavigationTreeNodeViewModel

The navigation tree node.

iconFile ImageFileViewModel

When this method returns, contains the ImageFileViewModel value, if it exists, otherwise null.

Returns

bool

true if iconFile is not null, otherwise false.

TryGetImageFile(NavigationTreeNodeViewModel, out ImageFileViewModel?)

Tries to get the image file associated with the navigation tree node.

public static bool TryGetImageFile(this NavigationTreeNodeViewModel node, out ImageFileViewModel? imageFile)

Parameters

node NavigationTreeNodeViewModel

The navigation tree node.

imageFile ImageFileViewModel

When this method returns, contains the ImageFileViewModel value, if it exists, otherwise null.

Returns

bool

true if imageFile is not null, otherwise false.

To top