Class LayoutViewDescriptor
A descriptor of a view within a LayoutDescriptorGroup for a LayoutDescriptor
This describes how the view should be displayed within the parent group.
The view itself is described through the ViewDescriptorInstanceInheritance
Inherited Members
Namespace: LemonEdge.Client.Core.Views.DefaultLayouts
Assembly: ClientCore.dll
Syntax
[DataContract]
public class LayoutViewDescriptor : ICloneable, ICloneable<LayoutViewDescriptor>, IHasLayoutPosition
Constructors
LayoutViewDescriptor(ViewDescriptorInstance)
Creates a new LayoutViewDescriptor with the specified view descriptor instance
Declaration
public LayoutViewDescriptor(ViewDescriptorInstance descriptor)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewDescriptorInstance | descriptor | A descriptor of the view to be created by in the UI of the client application |
LayoutViewDescriptor(ViewDescriptorInstance, LayoutDockPosition, Int32, Int32)
Creates a new LayoutViewDescriptor with the specified view descriptor instance and specified IHasLayoutPosition properties
Declaration
public LayoutViewDescriptor(ViewDescriptorInstance descriptor, LayoutDockPosition position, int proportionalVerticalSize, int proportionalHorizontalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewDescriptorInstance | descriptor | A descriptor of the view to be created by in the UI of the client application |
| LayoutDockPosition | position | The position this view should take within this group |
| System.Int32 | proportionalVerticalSize | The proportional percentage this view should take up of the |
| System.Int32 | proportionalHorizontalSize | The proportional percentage this view should take up of the |
Properties
Hidden
Indicates if this view should be currently hidden within the parent group
Declaration
public bool Hidden { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Position
The position this view should take within this group
Declaration
public LayoutDockPosition Position { get; set; }
Property Value
| Type | Description |
|---|---|
| LayoutDockPosition |
ProportionalHorizontalSize
The proportional percentage this view should take up of the position in the horizontal space
Declaration
public int ProportionalHorizontalSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
ProportionalVerticalSize
The proportional percentage this view should take up of the position in the vertical space
Declaration
public int ProportionalVerticalSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
View
The view itself when it has been constructed by the UI of the client application
Declaration
public IModelView View { get; set; }
Property Value
| Type | Description |
|---|---|
| IModelView |
ViewDescriptor
The descriptor of the view itself that should be created within the UI of the client application
When it is created it is accessible through View
Declaration
public ViewDescriptorInstance ViewDescriptor { get; set; }
Property Value
| Type | Description |
|---|---|
| ViewDescriptorInstance |
ViewItemInvalid
Indicates an item that is not allowed to be displayed against this view, was attempted to be passed to it
Declaration
public bool ViewItemInvalid { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
Clone()
Declaration
public LayoutViewDescriptor Clone()
Returns
| Type | Description |
|---|---|
| LayoutViewDescriptor |
CopyFromSource(LayoutViewDescriptor)
Declaration
public void CopyFromSource(LayoutViewDescriptor source)
Parameters
| Type | Name | Description |
|---|---|---|
| LayoutViewDescriptor | source |
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
| Type | Description |
|---|---|
| System.Object |
ICloneable.CopyFromSource(Object)
Declaration
void ICloneable.CopyFromSource(object source)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | source |