Class ContainerService
Represents the Container service responsible for DiagramContainers in Diagram.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public static class ContainerService
Methods
CompleteManipulation(CompositeAsyncStateCommand)
Completes the manipulation.
Declaration
public static void CompleteManipulation(CompositeAsyncStateCommand compositeCommand)
Parameters
CompositeAsyncStateCommand
compositeCommand
The composite command. |
DetachItemsFromContainer(IContainerShape, IEnumerable<Object>, CompositeAsyncStateCommand)
Detaches the items from container.
Declaration
public static void DetachItemsFromContainer(IContainerShape container, IEnumerable<object> items, CompositeAsyncStateCommand currentCommand)
Parameters
IContainerShape
container
The container. |
System.Collections.Generic.IEnumerable<System.Object>
items
The items. |
CompositeAsyncStateCommand
currentCommand
The current command. |
GetChildrenBounds(IContainerShape)
Gets the enclosing bounds of the floating children of a container - shapes and floating connections.
Declaration
public static Rect GetChildrenBounds(this IContainerShape container)
Parameters
IContainerShape
container
The container. |
Returns
System.Windows.Rect
|
GetContainerChildrenRecursively(IContainerShape)
Gets the container's children recursively.
Declaration
public static IEnumerable<object> GetContainerChildrenRecursively(IContainerShape containerShape)
Parameters
IContainerShape
containerShape
The container shape. |
Returns
System.Collections.Generic.IEnumerable<System.Object>
|
GetFloatingChildren(IContainerShape)
Gets the floating children of a container - shapes and floating connections.
Declaration
public static IEnumerable<IDiagramItem> GetFloatingChildren(this IContainerShape container)
Parameters
IContainerShape
container
The container. |
Returns
System.Collections.Generic.IEnumerable<IDiagramItem>
|
GetParentContainersRecursively(IContainerChild)
Gets the container's children recursively.
Declaration
public static IEnumerable<object> GetParentContainersRecursively(IContainerChild shape)
Parameters
IContainerChild
shape
The shape. |
Returns
System.Collections.Generic.IEnumerable<System.Object>
|
GetRootItems(IEnumerable<IDiagramItem>)
Gets only the root items from the given items.
Declaration
public static IEnumerable<IDiagramItem> GetRootItems(IEnumerable<IDiagramItem> items)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
items
The items. |
Returns
System.Collections.Generic.IEnumerable<IDiagramItem>
|
OnChildBoundsChange(IContainerShape, Rect)
Called when [child bounds change].
Declaration
public static void OnChildBoundsChange(IContainerShape parentContainer, Rect newChildrenBounds)
Parameters
IContainerShape
parentContainer
The parent container. |
System.Windows.Rect
newChildrenBounds
The new children bounds. |
OnChildrenBoundsChange(IEnumerable<IDiagramItem>)
Called when [children bounds change].
Declaration
public static void OnChildrenBoundsChange(IEnumerable<IDiagramItem> selectedItems)
Parameters
System.Collections.Generic.IEnumerable<IDiagramItem>
selectedItems
The selected items. |
OnContainerDrop(IContainerShape, IEnumerable<Object>, CompositeAsyncStateCommand)
Called when items are dropped in container.
Declaration
public static void OnContainerDrop(IContainerShape containerShape, IEnumerable<object> droppedItems, CompositeAsyncStateCommand currentCommand)
Parameters
IContainerShape
containerShape
The container shape. |
System.Collections.Generic.IEnumerable<System.Object>
droppedItems
The dropped items. |
CompositeAsyncStateCommand
currentCommand
The current command. |
UpdateContainerLayout(IDragDropAware)
Updates the container layout.
Declaration
public static void UpdateContainerLayout(IDragDropAware container)
Parameters
IDragDropAware
container
The container. |