Example #1
0
        private void _loadBlock()
        {
            if (_removeEmpty())
            {
                return;
            }
            if (!MainBlock.HasOverflowContent)
            {
                return;
            }

            if (_blocks.Count < 1)
            {
                var block = new PageItem(MainBlock);
                block.SetSize(_width, _height);
                block.SetX(_width).Index = 1;
                _addBlock(block);
            }
            _addLast();
        }
Example #2
0
 /// <summary>
 /// 从其他获取超出内容
 /// </summary>
 /// <param name="target"></param>
 public PageItem SetOverTarget(PageItem target)
 {
     target.GetOverTarget(Block);
     return(this);
 }
Example #3
0
 private void _addBlock(PageItem block)
 {
     _blocks.Add(block.SetBackground(Background));
     PagerBox.Children.Add(block.Bg);
 }