Class RadDiagramContainerShape
A shape which holds other shapes much like an items container.
Inheritance
Inherited Members
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
Remarks
Constructors
RadDiagramContainerShape()
Initializes a new instance of the Rad
Declaration
public RadDiagramContainerShape()
Fields
CollapsedContentProperty
Identifies the CollapsedContentProperty dependency property.
Declaration
public static readonly RadProperty CollapsedContentProperty
Field Value
CollapsedContentTemplateProperty
Identifies the CollapsedContentTemplateProperty dependency property.
Declaration
public static readonly RadProperty CollapsedContentTemplateProperty
Field Value
IsCollapsedProperty
Identifies the IsCollapsedProperty dependency property.
Declaration
public static readonly RadProperty IsCollapsedProperty
Field Value
IsCollapsibleProperty
Identifies the IsCollapsibleProperty dependency property.
Declaration
public static readonly RadProperty IsCollapsibleProperty
Field Value
IsDropEnabledProperty
Identifies the IsDropEnabled dependency property.
Declaration
public static readonly RadProperty IsDropEnabledProperty
Field Value
isInternalUpdate
Declaration
protected bool isInternalUpdate
Field Value
System.
|
ItemsProperty
Identifies the Items dependency property.
Declaration
public static readonly RadProperty ItemsProperty
Field Value
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly RadProperty ItemsSourceProperty
Field Value
Properties
BackColor
BackColor
Declaration
public override Color BackColor { get; set; }
Property Value
System.
|
Overrides
BorderBrush
BorderBrush
Declaration
public override Brush BorderBrush { get; set; }
Property Value
System.
|
Overrides
ChildrenItems
ChildrenItems
Declaration
public virtual IEnumerable<IDiagramItem> ChildrenItems { get; }
Property Value
System.
|
Implements
CollapsedContent
Gets or sets the content of the collapsed state placeholder of the container.
Declaration
public object CollapsedContent { get; set; }
Property Value
System. The content. |
CollapsedContentTemplate
Gets or sets the content template of the collapsed state placeholder of the container.
Declaration
public DataTemplate CollapsedContentTemplate { get; set; }
Property Value
Data The content. |
ContentBounds
ContentBounds
Declaration
public Rect ContentBounds { get; set; }
Property Value
Implements
ContentShapeElement
Declaration
public LightVisualElement ContentShapeElement { get; }
Property Value
DrawBorder
Gets or Sets value indicating whether the element should paint its border
Declaration
public virtual bool DrawBorder { get; set; }
Property Value
System.
|
HeaderPresenter
IsCollapsed
Gets or sets a value indicating whether this item is collapsed.
Declaration
public bool IsCollapsed { get; set; }
Property Value
System.
|
Implements
IsCollapsible
Gets or sets a value indicating whether this container is collapsible.
Declaration
public bool IsCollapsible { get; set; }
Property Value
System.
|
Implements
IsDropEnabled
Gets or sets whether drag-drop new items or removing items is enabled.
Declaration
public bool IsDropEnabled { get; set; }
Property Value
System.
|
IsDropPossible
Gets a value indicating whether drop operation is possible.
Declaration
protected virtual bool IsDropPossible { get; }
Property Value
System.
|
IsEnabled
IsEnabled
Declaration
public override bool IsEnabled { get; set; }
Property Value
System.
|
Overrides
Implements
IsRotationEnabled
IsRotationEnabled - this property is not applicable for container shape
Declaration
public bool IsRotationEnabled { get; set; }
Property Value
System.
|
Implements
Items
Gets the items contained in this visual container.
Declaration
public DiagramItemCollection Items { get; }
Property Value
Implements
ItemsSource
Gets or sets the items source for this container.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
System.
|
Implements
Label
MinBounds
Gets the min bounds.
Declaration
public Rect MinBounds { get; set; }
Property Value
Rect
The min bounds. |
Implements
Text
Text
Declaration
public override string Text { get; set; }
Property Value
System.
|
Overrides
ToggleCollapseButton
ToggleCollapseButton
Declaration
public RadToggleButtonElement ToggleCollapseButton { get; }
Property Value
VirtualizationState
VirtualizationState
Declaration
public ItemVisibility VirtualizationState { get; set; }
Property Value
Implements
Methods
AddItem(Object, Nullable<Point>)
Adds item to the Items collection.
Declaration
protected void AddItem(object item, Point? position = default(Point? ))
Parameters
System.
|
System.
|
AddItems(IEnumerable<Object>, Boolean)
Adds items to the Items collection.
Declaration
protected void AddItems(IEnumerable<object> items, bool updateLayout = true)
Parameters
System.
|
System.
|
CalculateContentBounds(Rect)
Calculates the content bounds from the given shape bounds.
Declaration
protected virtual Rect CalculateContentBounds(Rect newShapeBounds)
Parameters
Rect
newShapeBounds
|
Returns
CalculateMinShapeBounds()
Calculates the minimum shape bounds.
Declaration
protected virtual Rect CalculateMinShapeBounds()
Returns
CalculateShapeBounds(Rect)
Calculates the shape bounds from the given content bounds.
Declaration
protected virtual Rect CalculateShapeBounds(Rect contentBounds)
Parameters
Rect
contentBounds
|
Returns
CreateChildElements()
CreateChildElements
Declaration
protected override void CreateChildElements()
Overrides
CreateHeaderPresenter()
Deserialize(SerializationInfo)
Deserializes the serialization info in this diagram entity.
Declaration
public override void Deserialize(SerializationInfo info)
Parameters
Serialization A Serialization |
Overrides
Implements
FitToChildren()
Fits the size of the container to its children bounding box.
Declaration
public void FitToChildren()
Implements
GetParentContainer(RadObject)
Gets the parent container, if any.
Declaration
public static RadDiagramContainerShape GetParentContainer(RadObject obj)
Parameters
Rad An object which sits possibly in a container. |
Returns
Initialize(IGraphServiceLocator, IGraphInternal)
Initializes the specified service locator and parent graph.
Declaration
protected override void Initialize(IGraphServiceLocator serviceLocator, IGraphInternal graph)
Parameters
IGraph The service locator. |
IGraph The diagram control. |
Overrides
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.
Declaration
public override void OnApplyTemplate()
Overrides
OnChildBoundsChanged(IDiagramItem)
Called when [child bounds changed].
Declaration
protected virtual void OnChildBoundsChanged(IDiagramItem diagramItem)
Parameters
IDiagram The diagram item. |
OnContainerItemsDeserialized()
Called when the items in the containers have been deserialized and added to the Items collection.
Declaration
protected virtual void OnContainerItemsDeserialized()
OnDragEnter(DragItemsEventArgs)
Called on drag enter.
Declaration
protected virtual void OnDragEnter(DragItemsEventArgs args)
Parameters
Drag
|
OnDragLeave(DragItemsEventArgs)
Called on drag leave.
Declaration
protected virtual void OnDragLeave(DragItemsEventArgs args)
Parameters
Drag The Drag |
OnDrop(DragItemsEventArgs)
Called on drop.
Declaration
protected virtual void OnDrop(DragItemsEventArgs args)
Parameters
Drag
|
OnIsCollapsedChanged(Boolean, Boolean)
Called on is collapsed changed.
Declaration
protected virtual void OnIsCollapsedChanged(bool newValue, bool oldValue)
Parameters
System.
|
System.
|
OnIsDropEnabledPropertyChanged(Boolean, Boolean)
Called when the Is
Declaration
protected virtual void OnIsDropEnabledPropertyChanged(bool oldValue, bool newValue)
Parameters
System. The old value of the property. |
System. The new value of the property. |
OnItemsCollectionChanged(Object, NotifyCollectionChangedEventArgs)
Called when the items collection has been altered.
Declaration
protected virtual void OnItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
System. The sender. |
System. The System. |
Remarks
Note that the items are not necessarily shapes, but can be arbitrary objects.
OnLoaded()
OnManagerDrop(Object, DragEventArgs)
Called on drag drop manager drop.
Declaration
protected virtual void OnManagerDrop(object sender, DragEventArgs e)
Parameters
System. The sender. |
System. The instance containing the event data. |
OnPositionChanged(Point, Point)
Called when the position of this container changes.
Declaration
protected override void OnPositionChanged(Point oldPosition, Point newPosition)
Parameters
Overrides
OnPropertyChanged(String)
Called when a property value changed.
Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
System.
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
OnPropertyChanged
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnSizeChanged(Size, Size)
Called when the size changes.
Declaration
protected override void OnSizeChanged(Size newSize, Size oldSize)
Parameters
Overrides
OnZIndexChanged(Int32, Int32)
Called when the ZIndex changes.
Declaration
protected override void OnZIndexChanged(int newValue, int oldValue)
Parameters
System. The new value. |
System. The old value. |
Overrides
RemoveItem(Object)
Removes item from the Items collection.
Declaration
protected void RemoveItem(object item)
Parameters
System.
|
RemoveItems(IEnumerable<Object>, Boolean)
Removes items from the Items collection.
Declaration
protected void RemoveItems(IEnumerable<object> items, bool updateLayout = true)
Parameters
System.
|
System.
|
Serialize()
Serializes this instance.
Declaration
public override SerializationInfo Serialize()
Returns
Overrides
Implements
toggleCollapseButton_ToggleStateChanged(Object, StateChangedEventArgs)
Declaration
protected void toggleCollapseButton_ToggleStateChanged(object sender, StateChangedEventArgs args)
Parameters
System.
|
State
|
UpdateChildrenPositions(Point, Point)
Updates the children positions on container position change.
Declaration
protected virtual void UpdateChildrenPositions(Point oldPosition, Point newPosition)
Parameters
UpdateContainerLayout()
Declaration
protected void UpdateContainerLayout()
UpdateContentBounds()
Declaration
protected void UpdateContentBounds()
Events
IsCollapsedChanged
Occurs when the container IsCollapsed property has changed.
Declaration
public event RoutedEventHandler IsCollapsedChanged
Event Type
Explicit Interface Implementations
IContainerShape.AddItem(Object, Nullable<Point>)
Adds item to the Items collection.
Declaration
void IContainerShape.AddItem(object item, Point? position)
Parameters
System.
|
System.
|
Implements
IContainerShape.AddItems(IEnumerable<Object>)
Adds items to the Items collection.
Declaration
void IContainerShape.AddItems(IEnumerable<object> items)
Parameters
System.
|
Implements
IContainerShape.OnContainerItemsDeserialized()
Declaration
void IContainerShape.OnContainerItemsDeserialized()
Implements
IContainerShape.RefreshBounds()
IContainerShape.RemoveItem(Object)
Removes item from the Items collection.
Declaration
void IContainerShape.RemoveItem(object item)
Parameters
System.
|
Implements
IContainerShape.RemoveItems(IEnumerable<Object>)
Removes items from the Items collection.
Declaration
void IContainerShape.RemoveItems(IEnumerable<object> items)
Parameters
System.
|
Implements
IDragDropAware.IsDropPossible
Declaration
bool IDragDropAware.IsDropPossible { get; }
Returns
System.
|
Implements
IDragDropAware.OnDragEnter(DragItemsEventArgs)
Called on drag enter.
Declaration
void IDragDropAware.OnDragEnter(DragItemsEventArgs args)
Parameters
Drag
|
Implements
IDragDropAware.OnDragLeave(DragItemsEventArgs)
Called on drag leave.
Declaration
void IDragDropAware.OnDragLeave(DragItemsEventArgs args)
Parameters
Drag
|
Implements
IDragDropAware.OnDrop(DragItemsEventArgs)
Called on drop.
Declaration
void IDragDropAware.OnDrop(DragItemsEventArgs args)
Parameters
Drag
|
Implements
ISupportMouseOver.get_IsMouseOver()
Declaration
bool ISupportMouseOver.get_IsMouseOver()
Returns
System.
|