ComponentFactory.Quicksilver.Layout.GridLayout.AddToLogicalTree C# (CSharp) Method

AddToLogicalTree() public method

Add this element into the logical tree.
public AddToLogicalTree ( ILogicalParent parent ) : void
parent ILogicalParent Interface of logical parent.
return void
        public override void AddToLogicalTree(ILogicalParent parent)
        {
            // Add ourself into the logical tree
            base.AddToLogicalTree(parent);

            // Add any existing cols/rows into the logical tree
            ColumnDefinitions.LogicalParent = parent;
            foreach (ColumnDefinition col in ColumnDefinitions)
                col.AddToLogicalTree(parent);

            RowDefinitions.LogicalParent = parent;
            foreach (RowDefinition row in RowDefinitions)
                row.AddToLogicalTree(parent);
        }