A shape which holds other shapes much like an items container.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class RadDiagramContainerShape : RadDiagramShapeBase, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop, IContainerShape, IShape, IDiagramItem, ISerializable, ISupportMouseOver, IPropertyChanged, IGroupable, ISupportManipulation, ISupportVirtualization, IContainerChild, ICollapsible, ISupportRotation, IDragDropAware
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementRadDiagramItemRadDiagramShapeBaseRadDiagramContainerShape...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadDiagramContainerShape class.
public RadDiagramContainerShape()
Fields
Identifies the CollapsedContentProperty dependency property.
public static readonly RadProperty CollapsedContentProperty
Identifies the CollapsedContentTemplateProperty dependency property.
public static readonly RadProperty CollapsedContentTemplateProperty
Identifies the IsCollapsedProperty dependency property.
public static readonly RadProperty IsCollapsedProperty
Identifies the IsCollapsibleProperty dependency property.
public static readonly RadProperty IsCollapsibleProperty
Identifies the IsDropEnabled dependency property.
public static readonly RadProperty IsDropEnabledProperty
protected bool isInternalUpdate
Identifies the Items dependency property.
public static readonly RadProperty ItemsProperty
Identifies the ItemsSource dependency property.
public static readonly RadProperty ItemsSourceProperty
Properties
BorderBrush
public override Brush BorderBrush { get; set; }
Overrides:
ChildrenItems
IEnumerable<IDiagramItem>
ChildrenItems
public virtual IEnumerable<IDiagramItem> ChildrenItems { get; }
Implements:
Gets or sets the content of the collapsed state placeholder of the container.
public object CollapsedContent { get; set; }
The content.
Gets or sets the content template of the collapsed state placeholder of the container.
public DataTemplate CollapsedContentTemplate { get; set; }
The content.
ContentBounds
public Rect ContentBounds { get; set; }
Implements:
public LightVisualElement ContentShapeElement { get; }
Gets or Sets value indicating whether the element should paint its border
public virtual bool DrawBorder { get; set; }
public LightVisualElement HeaderPresenter { get; }
Gets or sets a value indicating whether this item is collapsed.
public bool IsCollapsed { get; set; }
Implements:
Gets or sets a value indicating whether this container is collapsible.
public bool IsCollapsible { get; set; }
True if this instance is collapsible; otherwise, false.
Implements:
Gets or sets whether drag-drop new items or removing items is enabled.
public bool IsDropEnabled { get; set; }
Gets a value indicating whether drop operation is possible.
protected virtual bool IsDropPossible { get; }
Gets the items contained in this visual container.
public DiagramItemCollection Items { get; }
Implements:
Gets or sets the items source for this container.
public IEnumerable ItemsSource { get; set; }
Implements:
public RadLabelElement Label { get; }
Gets the min bounds.
public Rect MinBounds { get; set; }
The min bounds.
Implements:
ToggleCollapseButton
public RadToggleButtonElement ToggleCollapseButton { get; }
VirtualizationState
public ItemVisibility VirtualizationState { get; set; }
Implements:
Methods
Calculates the minimum shape bounds.
CreateChildElements
protected override void CreateChildElements()
Overrides:
Deserializes the serialization info in this diagram entity.
public override void Deserialize(SerializationInfo info)
A SerializationInfo instance.
Overrides:
Implements:
Fits the size of the container to its children bounding box.
public void FitToChildren()
Implements:
Gets the parent container, if any.
public static RadDiagramContainerShape GetParentContainer(RadObject obj)
An object which sits possibly in a container.
Returns:Initializes the specified service locator and parent graph.
protected override void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
The service locator.
graphIGraphInternalThe diagram control.
Overrides:
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
public override void OnApplyTemplate()
Overrides:
Called when [child bounds changed].
protected virtual void OnChildBoundsChanged(IDiagramItem diagramItem)
The diagram item.
Called when the items in the containers have been deserialized and added to the Items collection.
protected virtual void OnContainerItemsDeserialized()
Called on drag enter.
Called on drag leave.
protected virtual void OnDragLeave(DragItemsEventArgs args)
The DragItemsEventArgs instance containing the event data.
Called on drop.
Called when the IsDropEnabled property changed.
Called when the items collection has been altered.
protected virtual void OnItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
The sender.
eNotifyCollectionChangedEventArgsThe NotifyCollectionChangedEventArgs instance containing the event data.
Note that the items are not necessarily shapes, but can be arbitrary objects.
OnLoaded
protected override void OnLoaded()
Overrides:
Called on drag drop manager drop.
protected virtual void OnManagerDrop(object sender, DragEventArgs e)
The sender.
eDragEventArgsThe instance containing the event data.
OnPropertyChanged
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
e
Overrides:
Called when a property value changed.
protected override void OnPropertyChanged(string propertyName)
Overrides:
Removes item from the Items collection.
Serializes this instance.
protected void toggleCollapseButton_ToggleStateChanged(object sender, StateChangedEventArgs args)
protected void UpdateContainerLayout()
protected void UpdateContentBounds()
Events
Occurs when the container IsCollapsed property has changed.
public event RoutedEventHandler IsCollapsedChanged