Show / Hide Table of Contents

Class LimitedTypeModeBase

Provides a base class from which implementations of INavigationMode may derive. Implementations deriving from this class will only show nodes for the specified item types.

Inheritance
object
NavigationModeBase
LimitedTypeModeBase
Implements
INavigationMode
Inherited Members
NavigationModeBase.Name
NavigationModeBase.Weight
NavigationModeBase.GetChildrenOfType(Guid, Node, bool)
NavigationModeBase.GetChildrenOfType(Guid[], Node, bool)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Navigator.Modes
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public abstract class LimitedTypeModeBase : NavigationModeBase, INavigationMode

Constructors

LimitedTypeModeBase(string, int, Collection<LocalCheckout>, params Guid[])

Initializes a new instance of the LimitedTypeModeBase class.

Declaration
public LimitedTypeModeBase(string name, int weight, Collection<LocalCheckout> checkouts, params Guid[] types)
Parameters
Type Name Description
string name

The name of the mode.

int weight

The weight of the mode, used when the mode is displayed in a list of modes.

Collection<LocalCheckout> checkouts
Guid[] types

The types of items to be displayed in this mode.

Properties

IncludedTypes

Gets an array of all IVersionable item types that may be displayed by this mode.

Declaration
public override Guid[] IncludedTypes { get; }
Property Value
Type Description
Guid[]

The included types.

Overrides
NavigationModeBase.IncludedTypes

Methods

AreChildrenRemote(Node)

Returns a value indicating whether the children of the specified node are determined by making network calls.

Declaration
public override bool AreChildrenRemote(Node item)
Parameters
Type Name Description
Node item

The item for which children will be requested.

Returns
Type Description
bool

true if network activity is required to determine the children of the specified node; otherwise false.

Overrides
NavigationModeBase.AreChildrenRemote(Node)

GetChildItems(Node)

Gets the child items of the specified node. If AreChildrenRemote returned true, this method wil be called on a background thread.

Declaration
public override Collection<Node> GetChildItems(Node item)
Parameters
Type Name Description
Node item

The node for which children are being requested.

Returns
Type Description
Collection<Node>

A list of nodes that will be added as children of the specified node.

Overrides
NavigationModeBase.GetChildItems(Node)

Implements

INavigationMode
In this article
Back to top Generated by DocFX