Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 internal void MoveTo(CanvasSection section)
 {
     this.section = section;
 }
Ejemplo n.º 4
0
 internal void MoveTo(CanvasSection newSection, CanvasColumn newColumn)
 {
     this.section = newSection;
     this.column  = newColumn;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }