Class LayoutDescriptorGroup
A container group within a LayoutDescriptor which can contain multiple other groups or LayoutViewDescriptor
Each LayoutTabSetting also has an associated group which is the top level group that hosts all the groups/views within the tab itself
Inherited Members
Namespace: LemonEdge.Client.Core.Views.DefaultLayouts.Core
Assembly: LemonEdge.Client.UI.API.dll
Syntax
[DataContract]
public class LayoutDescriptorGroup : ICloneable, ICloneable<LayoutDescriptorGroup>, IHasLayoutPosition
Properties
AreChildrenTabbed
Returns true if there is more than one chil group/view and they all have a position of Center with percentages >= 100
Declaration
public bool AreChildrenTabbed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Groups
A list of all the direct groups contained within thie group
Declaration
public IEnumerable<LayoutDescriptorGroup> Groups { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<LayoutDescriptorGroup> |
HasHiddenViews
Returns true if any of the direct groups or views are currently hidden (as the UI may have to adjust for that)
Declaration
public bool HasHiddenViews { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HorizontalOrientation
Indicates the items in this group should be orientated horizontally if stacked together
Declaration
public bool HorizontalOrientation { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsContainer
Indicates this group will be used as a container to host other groups
Declaration
public bool IsContainer { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Position
The position this group should take within a parent item
Declaration
public LayoutDockPosition Position { get; set; }
Property Value
| Type | Description |
|---|---|
| LayoutDockPosition |
ProportionalHorizontalSize
The proportional percentage this group should take up of the Position in the horizontal space
Declaration
public int ProportionalHorizontalSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ProportionalVerticalSize
The proportional percentage this group should take up of the Position in the vertical space
Declaration
public int ProportionalVerticalSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Views
A list of all the direct views contained within this group
Declaration
public IEnumerable<LayoutViewDescriptor> Views { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<LayoutViewDescriptor> |
Methods
AddGroup(bool, LayoutDockPosition, int, int)
Creates and adds a new child group to this group with the specified IHasLayoutPosition properties
Declaration
public LayoutDescriptorGroup AddGroup(bool isContainer, LayoutDockPosition position, int proportionalVerticalSize, int proportionalHorizontalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isContainer | Indicates this group will be used as a container to host other groups |
| LayoutDockPosition | position | The position this new child group should take within this group |
| int | proportionalVerticalSize | The proportional percentage this new child group should take up of the
|
| int | proportionalHorizontalSize | The proportional percentage this new child group should take up of the
|
Returns
| Type | Description |
|---|---|
| LayoutDescriptorGroup | The new child group that has been added to this group |
AddView(ViewDescriptorInstance, LayoutDockPosition, int, int)
Adds the specified viewDescriptor to this group with the specified
IHasLayoutPosition properties
Declaration
public LayoutViewDescriptor AddView(ViewDescriptorInstance viewDescriptor, LayoutDockPosition position, int proportionalVerticalSize, int proportionalHorizontalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewDescriptorInstance | viewDescriptor | The descriptor of the view to add to this group within the layout |
| LayoutDockPosition | position | The position this view should take within this group |
| int | proportionalVerticalSize | The proportional percentage this view should take up of the
|
| int | proportionalHorizontalSize | The proportional percentage this view should take up of the
|
Returns
| Type | Description |
|---|---|
| LayoutViewDescriptor | The view that has been added to this group |
Clone()
Creates a new instance of this class (of type LayoutDescriptorGroup) with all the same property values as this instance
Declaration
public LayoutDescriptorGroup Clone()
Returns
| Type | Description |
|---|---|
| LayoutDescriptorGroup | A new instance of this class with all the same property values as this instance |
CopyFromSource(LayoutDescriptorGroup)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(LayoutDescriptorGroup source)
Parameters
| Type | Name | Description |
|---|---|---|
| LayoutDescriptorGroup | source | The source object to copy all values from. |
DeleteView(LayoutViewDescriptor)
Indicates that the specified view should be removed from this group
This works recursively, so if the view is not directly attached to this group then all child groups will be searched until the view is removed
Declaration
public void DeleteView(LayoutViewDescriptor view)
Parameters
| Type | Name | Description |
|---|---|---|
| LayoutViewDescriptor | view | The view to remove from this group layout |
DeleteViewAndChildren(ViewDescriptorInstance)
Indicates that the specified view should be removed from this group, and all views that in turn are child views of that view should also be removed
This works recursively, so if the view is not directly attached to this group then all child groups will be searched until the view is removed
Declaration
public IEnumerable<ViewDescriptorInstance> DeleteViewAndChildren(ViewDescriptorInstance view)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewDescriptorInstance | view | The view to remove from this group layout |
Returns
| Type | Description |
|---|---|
| IEnumerable<ViewDescriptorInstance> | A list of all the views (and any sub-views) that were remvoed from this operation |
DeleteViewAndChildren(LayoutViewDescriptor)
Indicates that the specified view should be removed from this group, and all views that in turn are child views of that view should also be removed
This works recursively, so if the view is not directly attached to this group then all child groups will be searched until the view is removed
Declaration
public IEnumerable<LayoutViewDescriptor> DeleteViewAndChildren(LayoutViewDescriptor view)
Parameters
| Type | Name | Description |
|---|---|---|
| LayoutViewDescriptor | view | The view to remove from this group layout |
Returns
| Type | Description |
|---|---|
| IEnumerable<LayoutViewDescriptor> | A list of all the views (and any sub-views) that were remvoed from this operation |
GetAllViewDescriptorLayouts()
Returns all view descriptors held within this group either directly or in any sub groups (found recursively)
Declaration
public IEnumerable<LayoutViewDescriptor> GetAllViewDescriptorLayouts()
Returns
| Type | Description |
|---|---|
| IEnumerable<LayoutViewDescriptor> | All view descriptors held within this group either directly or in any sub groups (found recursively) |
GetViewChildren(LayoutViewDescriptor)
Returns all views that are direct child views of the specified view
Declaration
public IEnumerable<LayoutViewDescriptor> GetViewChildren(LayoutViewDescriptor view)
Parameters
| Type | Name | Description |
|---|---|---|
| LayoutViewDescriptor | view | The view to retrieve all direct child views of |
Returns
| Type | Description |
|---|---|
| IEnumerable<LayoutViewDescriptor> | All views that are direct child views of the specified |