Class ViewDescriptorEnumerator
A class that provides an enumeration of all possible view descriptor instances for a specific IModelView
This can be referenced in the ViewDescriptorAttribute for a IModelView
Inheritance
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: ClientCore.dll
Syntax
public abstract class ViewDescriptorEnumerator
Methods
GetAnyReplacingVersion(ViewDescriptorInstance)
Provides an opportunity to replace a view descriptor instance with another one when used from CreateView(IModelLayoutDisplayer)
This is used by the system implementation of IBaseGrid<T> and IBaseDefaultSingleView<T> to provide an override to use a custom grid or view instead (from ICustomGrid, or ICustomView) when ReplaceCoreView is specified
By default this just returnsofView
Declaration
public virtual ViewDescriptorInstance GetAnyReplacingVersion(ViewDescriptorInstance ofView)
Parameters
Type | Name | Description |
---|---|---|
ViewDescriptorInstance | ofView | The view to automatically replace with a different view instance if the user has specified that view descriptor should always be overridden with a different one |
Returns
Type | Description |
---|---|
ViewDescriptorInstance | A different view dsecriptor if the user has specified to always override the provided |
GetViewInstances()
Provides an enumeration of all the View Descriptor Instances that can be used against the IModelView the ViewDescriptorAttribute is marked against
Declaration
public abstract IEnumerable<ViewDescriptorInstance> GetViewInstances()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ViewDescriptorInstance> | An enumeration of all the View Descriptor Instances that can be used against the IModelView the ViewDescriptorAttribute is marked against |