private void ReindexSection(ICanvasSection section) { foreach (var column in section.Columns) { ReindexColumn(column); } }
/// <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); }
/// <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); }
/// <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); }
internal void MoveTo(ICanvasSection newSection, ICanvasColumn newColumn) { section = newSection; column = newColumn; }
/// <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; }
/// <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; }
/// <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; }