Table of Contents

Class NavigationTreeViewNodeExtensions

Namespace
Dynamicweb.Ecommerce.ProductCatalog
Assembly
Dynamicweb.Ecommerce.dll

Extension methods for NavigationTreeNodeViewModel that add ecommerce product group awareness to navigation nodes.

public static class NavigationTreeViewNodeExtensions
Inheritance
NavigationTreeViewNodeExtensions
Inherited Members

Methods

TryGetProductGroup(NavigationTreeNodeViewModel, out ProductGroupViewModel?)

Attempts to load the ProductGroupViewModel associated with a navigation tree node, returning a boolean indicating whether the operation was successful.

public static bool TryGetProductGroup(this NavigationTreeNodeViewModel node, out ProductGroupViewModel? model)

Parameters

node NavigationTreeNodeViewModel

The navigation tree node whose GroupId identifies the product group.

model ProductGroupViewModel

When this method returns, contains the ProductGroupViewModel if the operation was successful; otherwise, null.

Returns

bool

true if the product group was successfully loaded; otherwise, false.

To top