Пример #1
0
        internal CanvasColumn(CanvasSection section, int order)
        {
            if (section == null)
            {
                throw new ArgumentNullException("Passed section cannot be null");
            }

            this.section     = section;
            this.Order       = order;
            this.layoutIndex = 1;
        }
Пример #2
0
        internal CanvasColumn(CanvasSection section, int order, int?sectionFactor, int?layoutIndex)
        {
            if (section == null)
            {
                throw new ArgumentNullException("Passed section cannot be null");
            }

            this.section      = section;
            this.Order        = order;
            this.columnFactor = sectionFactor.HasValue ? sectionFactor.Value : 12;
            this.layoutIndex  = layoutIndex.HasValue ? layoutIndex.Value : 1;
        }
Пример #3
0
 internal void MoveTo(CanvasSection section)
 {
     this.section = section;
 }
Пример #4
0
 internal void MoveTo(CanvasSection newSection, CanvasColumn newColumn)
 {
     this.section = newSection;
     this.column  = newColumn;
 }
Пример #5
0
 /// <summary>
 /// Moves the control to another section and column
 /// </summary>
 /// <param name="newColumn">New column that will host the control</param>
 public void Move(CanvasColumn newColumn)
 {
     this.section = newColumn.Section;
     this.column  = newColumn;
 }
Пример #6
0
 /// <summary>
 /// Moves the control to another section and column
 /// </summary>
 /// <param name="newSection">New section that will host the control</param>
 /// <param name="order">New order for the control in the new section</param>
 public void Move(CanvasSection newSection, int order)
 {
     Move(newSection);
     this.order = order;
 }
Пример #7
0
 /// <summary>
 /// Moves the control to another section and column
 /// </summary>
 /// <param name="newSection">New section that will host the control</param>
 public void Move(CanvasSection newSection)
 {
     this.section = newSection;
     this.column  = newSection.DefaultColumn;
 }