示例#1
0
        internal void MergeVerticalSectionColumn(CanvasColumn column)
        {
            // What was the highest order
            int order      = 1;
            var lastColumn = this.columns.OrderBy(p => p.Order).FirstOrDefault();

            if (lastColumn != null)
            {
                order = lastColumn.Order + 1;
            }

            // Add the column to this section, first ensure it's connected to the new section and it's order has been updated for insertion in the new section
            column.MoveTo(this);
            column.Order = order;

            this.AddColumn(column);
        }