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