Пример #1
0
 private void ReindexSection(ICanvasSection section)
 {
     foreach (var column in section.Columns)
     {
         ReindexColumn(column);
     }
 }
Пример #2
0
        /// <summary>
        /// Moves the control to another section and column in the given position
        /// </summary>
        /// <param name="newSection">New section that will host the control</param>
        /// <param name="position">New position for the control in the new section</param>
        public void MovePosition(ICanvasSection newSection, int position)
        {
            var currentSection = Section;

            MovePosition(newSection);
            ReindexSection(currentSection);
            MovePosition(position);
        }
Пример #3
0
        /// <summary>
        /// Moves the control to another section and column while keeping it's current position
        /// </summary>
        /// <param name="newColumn">New column that will host the control</param>
        public void MovePosition(ICanvasColumn newColumn)
        {
            var currentColumn = Column;

            section = newColumn.Section;
            column  = newColumn;
            ReindexColumn(currentColumn);
            ReindexColumn(Column);
        }
Пример #4
0
        /// <summary>
        /// Moves the control to another section and column while keeping it's current position
        /// </summary>
        /// <param name="newSection">New section that will host the control</param>
        public void MovePosition(ICanvasSection newSection)
        {
            var currentSection = Section;

            section = newSection;
            column  = newSection.DefaultColumn;
            ReindexSection(currentSection);
            ReindexSection(Section);
        }
Пример #5
0
 internal void MoveTo(ICanvasSection newSection, ICanvasColumn newColumn)
 {
     section = newSection;
     column  = newColumn;
 }
Пример #6
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(ICanvasColumn newColumn)
 {
     section = newColumn.Section;
     column  = newColumn;
 }
Пример #7
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(ICanvasSection newSection, int order)
 {
     Move(newSection);
     this.order = order;
 }
Пример #8
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(ICanvasSection newSection)
 {
     section = newSection;
     column  = newSection.DefaultColumn;
 }