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
nodeNavigationTreeNodeViewModelThe navigation tree node whose
GroupIdidentifies the product group.modelProductGroupViewModelWhen this method returns, contains the ProductGroupViewModel if the operation was successful; otherwise,
null.
Returns
- bool
trueif the product group was successfully loaded; otherwise,false.