コード例 #1
0
ファイル: CanvasControl.cs プロジェクト: wonderplayer/pnpcore
 private void ReindexSection(ICanvasSection section)
 {
     foreach (var column in section.Columns)
     {
         ReindexColumn(column);
     }
 }
コード例 #2
0
ファイル: CanvasControl.cs プロジェクト: wonderplayer/pnpcore
        /// <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
ファイル: CanvasControl.cs プロジェクト: wonderplayer/pnpcore
        /// <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
ファイル: CanvasControl.cs プロジェクト: wonderplayer/pnpcore
        /// <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
ファイル: CanvasControl.cs プロジェクト: wonderplayer/pnpcore
 internal void MoveTo(ICanvasSection newSection, ICanvasColumn newColumn)
 {
     section = newSection;
     column  = newColumn;
 }
コード例 #6
0
ファイル: CanvasControl.cs プロジェクト: wonderplayer/pnpcore
 /// <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
ファイル: CanvasControl.cs プロジェクト: wonderplayer/pnpcore
 /// <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
ファイル: CanvasControl.cs プロジェクト: wonderplayer/pnpcore
 /// <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;
 }