menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Container - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Container

    Represents the graphical objects used to visually group the logically-related diagram elements on the page.

    Inheritance
    System.Object
    Node
    Group
    Container
    Implements
    System.IDisposable
    IContainer
    IGroup
    INode
    IGroupable
    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    Group.Connectors
    Group.ConnectorsProperty
    Group.Groups
    Group.GroupsProperty
    Group.MeasureOverride(Size)
    Group.Nodes
    Group.NodesProperty
    Node.AnnotationConstraints
    Node.AnnotationConstraintsProperty
    Node.Annotations
    Node.AnnotationsProperty
    Node.ArrangeOverride(Size)
    Node.BoundingRectangle
    Node.Bounds
    Node.BoundsProperty
    Node.ConnectorPadding
    Node.ConnectorPaddingProperty
    Node.Constraints
    Node.ConstraintsProperty
    Node.Flip
    Node.FlipMode
    Node.FlipModeProperty
    Node.FlipProperty
    Node.GetElementRect(FrameworkElement)
    Node.GetLayoutClip(Size)
    Node.HitPadding
    Node.HitPaddingProperty
    Node.ID
    Node.IDisposable.Dispose()
    Node.IDProperty
    Node.Info
    Node.IsConnecting
    Node.IsExpanded
    Node.IsExpandedProperty
    Node.IsSelected
    Node.IsSelectedProperty
    Node.Key
    Node.KeyProperty
    Node.LaneOffsetX
    Node.LaneOffsetXProperty
    Node.LaneOffsetY
    Node.LaneOffsetYProperty
    Node.Menu
    Node.MenuProperty
    Node.OffsetX
    Node.OffsetXProperty
    Node.OffsetY
    Node.OffsetYProperty
    Node.OnCreateAutomationPeer()
    Node.OnPropertyChanged(String)
    Node.OnSnap(List<SnapParameter>, Boolean)
    Node.ParentGroup
    Node.ParentGroupProperty
    Node.Pivot
    Node.PivotProperty
    Node.Ports
    Node.PortsProperty
    Node.PortVisibility
    Node.PortVisibilityProperty
    Node.PropertyChanged
    Node.RotateAngle
    Node.RotateAngleProperty
    Node.SearchTags
    Node.SearchTagsProperty
    Node.Shape
    Node.ShapeProperty
    Node.ShapeStyle
    Node.ShapeStyleProperty
    Node.ShowContextMenu(FrameworkElement, MouseButtonEventArgs)
    Node.SnapToObject
    Node.SnapToObjectProperty
    Node.ThemeStyleId
    Node.ThemeStyleIdProperty
    Node.UnitHeight
    Node.UnitHeightProperty
    Node.UnitWidth
    Node.UnitWidthProperty
    Node.ZIndex
    Node.ZIndexProperty
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public class Container : Group, ISharedData, IDisposable, IContainer, IGroup, INode, IGroupable, IGroupView, INodeView, IView, IDiagramElement, IID, INotifyPropertyChanged
    Remarks

    In a Container, each shape can be added or removed simply by dragging them in or out of it. Whereas Group unites several shapes together as a single object which can be moved, resized, or rotated.

    Constructors

    Container()

    Creates a new instance of Container class.

    Declaration
    public Container()

    Fields

    HeaderProperty

    Identifies the Header dependency property.

    Declaration
    public static DependencyProperty HeaderProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    Header

    Declaration
    public IContainerHeader Header { get; set; }
    Property Value
    Type
    IContainerHeader

    Methods

    OnApplyTemplate()

    Method to apply template values to Container class.

    Declaration
    public override void OnApplyTemplate()
    Overrides
    Node.OnApplyTemplate()

    Explicit Interface Implementations

    IGroup.get_Padding()

    Declaration
    Thickness IGroup.get_Padding()
    Returns
    Type
    System.Windows.Thickness

    IGroup.set_Padding(Thickness)

    Declaration
    void IGroup.set_Padding(Thickness value)
    Parameters
    Type Name Description
    System.Windows.Thickness value

    INode.get_ContentTemplate()

    Declaration
    DataTemplate INode.get_ContentTemplate()
    Returns
    Type
    System.Windows.DataTemplate

    INode.get_MaxHeight()

    Declaration
    double INode.get_MaxHeight()
    Returns
    Type
    System.Double

    INode.get_MaxWidth()

    Declaration
    double INode.get_MaxWidth()
    Returns
    Type
    System.Double

    INode.get_MinHeight()

    Declaration
    double INode.get_MinHeight()
    Returns
    Type
    System.Double

    INode.get_MinWidth()

    Declaration
    double INode.get_MinWidth()
    Returns
    Type
    System.Double

    INode.set_ContentTemplate(DataTemplate)

    Declaration
    void INode.set_ContentTemplate(DataTemplate value)
    Parameters
    Type Name Description
    System.Windows.DataTemplate value

    INode.set_MaxHeight(Double)

    Declaration
    void INode.set_MaxHeight(double value)
    Parameters
    Type Name Description
    System.Double value

    INode.set_MaxWidth(Double)

    Declaration
    void INode.set_MaxWidth(double value)
    Parameters
    Type Name Description
    System.Double value

    INode.set_MinHeight(Double)

    Declaration
    void INode.set_MinHeight(double value)
    Parameters
    Type Name Description
    System.Double value

    INode.set_MinWidth(Double)

    Declaration
    void INode.set_MinWidth(double value)
    Parameters
    Type Name Description
    System.Double value

    Implements

    System.IDisposable
    IContainer
    IGroup
    INode
    IGroupable
    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved